Ejemplo n.º 1
0
 public IActionResult Remove(int id)
 {
     if (id <= 0)
     {
         return(NotFound());
     }
     if (!_feeModel.RemoveDTO(id))
     {
         return(Problem(statusCode: 500, detail: "Can't remove data"));
     }
     _cache.DataUpdated(CacheKey.FEE);
     return(Ok());
 }