internal string Delete(int id) { var data = Get(id); _repo.Delete(id); return("Deleted Job"); }
public bool Delete(int id) { var data = FindById(id); _repo.Delete(id); return(true); }
internal void Delete(int id, Profile userInfo) { var data = _repo.GetById(id); if (data.CreatorId != userInfo.Id) { throw new Exception("Invalid Permissions to Delete"); } _repo.Delete(id); }
internal void Delete(int id) { var data = _repo.GetById(id); if (data == null) { throw new Exception("Invalid Id"); } _repo.Delete(id); }
public string Delete(int id) { _repo.Delete(id); return("Succesfully Deleted"); }
internal string Delete(int id) { _repo.Delete(id); return("Successfully Deleted"); }
internal void Delete(int id) { _repo.Delete(id); }