public IActionResult Delete([FromRoute] int id) { try { return(Ok(_repo.DeleteById(id, HttpContext.User.Identity.Name))); } catch (Exception error) { return(BadRequest(error.Message)); } }
public IActionResult Delete([FromRoute] int id) { try { return(Ok(_repo.DeleteById(id, HttpContext.User.Identity.Name))); } catch (Exception error) { return(BadRequest(error.Message)); } }