diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/DevHive.Web/Controllers/PostController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DevHive.Web/Controllers/PostController.cs b/src/DevHive.Web/Controllers/PostController.cs index 0a5cf73..d3fdbf6 100644 --- a/src/DevHive.Web/Controllers/PostController.cs +++ b/src/DevHive.Web/Controllers/PostController.cs @@ -68,7 +68,7 @@ namespace DevHive.Web.Controllers Guid id = await this._postService.UpdatePost(updatePostServiceModel); return id == Guid.Empty ? - new BadRequestObjectResult("Unable to update post!") : + new BadRequestObjectResult("Could not update post!") : new OkObjectResult(new { Id = id }); } #endregion @@ -82,7 +82,7 @@ namespace DevHive.Web.Controllers return await this._postService.DeletePost(id) ? new OkResult() : - new BadRequestObjectResult("Could not delete Comment"); + new BadRequestObjectResult("Could not delete Post"); } #endregion } |
