Ejemplo n.º 1
0
 public ActionResult Delete(int id)
 {
     fixtureService.Delete(id);
     fixtureService.Commit();
     SuccessMessage(FormMessages.DeleteSuccess);
     return(RedirectToAction("Index"));
 }
Ejemplo n.º 2
0
        public IActionResult Delete(Guid id)
        {
            var result = fixtureService.Delete(id);

            if (result.Success)
            {
                return(NoContent());
            }
            return(BadRequest(result.Message));
        }