Exemplo n.º 1
0
        public IActionResult Delete(int id)
        {
            try
            {
                Covers item = new Covers
                {
                    Id = id,
                    //FUpdUserId = GetNameClaim(),
                    UpdatedAt = DateTime.Now
                };

                _itemService.Delete(item);

                return(Ok());
            }
            catch (Exception ex)
            {
                // return error message if there was an exception
                return(DefaultError(ex.Message));
            }
        }
Exemplo n.º 2
0
 public ActionResult RemoveCover(int id)
 {
     _coverServie.Delete(id);
     return(Json(true));
 }