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