Skip to content

Commit 24b3c98

Browse files
committed
Edited Message
1 parent 7edb965 commit 24b3c98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Olx.WebApi/Controllers/CategoriesController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public async Task<ActionResult<CategoryViewDto>> GetCategoryById(long id)
3333
}
3434
catch (Exception ex)
3535
{
36-
return NotFound("Category not found.");
36+
return NotFound(ex.Message);
3737
}
3838
}
3939

Olx.WebApi/Controllers/PostPropertiesController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public async Task<ActionResult<PostPropertyViewDto>> GetPostPropertyById(long id
3434
}
3535
catch (Exception ex)
3636
{
37-
return NotFound("PostProperty not found.");
37+
return NotFound(ex.Message);
3838
}
3939
}
4040

0 commit comments

Comments
 (0)