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