public IActionResult Delete(StatUnitTypes type, int id) { try { _deleteService.DeleteUndelete(type, id, true, User.GetUserId()); return(NoContent()); } catch (UnauthorizedAccessException) { return(Forbid()); } }
public IActionResult Restore(StatUnitTypes type, int regId) { _deleteService.DeleteUndelete(type, regId, false, User.GetUserId()); return(NoContent()); }