Exemple #1
0
 public AvatarType DeleteType(int id)
 {
     if (id < 1)
     {
         throw new System.IO.InvalidDataException("Id must be atleast 1");
     }
     return(_typeRepository.DeleteType(id));
 }
Exemple #2
0
 public IActionResult DeleteConfirmed(int TypeId)
 {
     typeRepository.DeleteType(TypeId);
     return(RedirectToAction("List"));
 }
Exemple #3
0
 public IActionResult DeleteType(int id)
 {
     _typeRepository.DeleteType(id);
     return(Ok());
 }