public ActionResult DeleteType(int id) { var deletedType = _repository.DeleteType(id); return(Ok(deletedType)); }