internal string Delete(int id) { var data = GetById(id); _repo.Delete(id); return("Deleted"); }
internal string Delete(int id) { var data = Get(id); _repo.Delete(id); return("Deleted Job"); }
internal JobListing Delete(int id) { JobListing original = Get(id); _repo.Delete(id); return(original); }
internal Job Delete(int id) { Job original = GetById(id); _repo.Delete(id); return(original); }
internal String Delete(int id) { // NOTE: Why do we declare data? We don't use it... Job data = GetById(id); _repo.Delete(id); return("delorted"); }
internal string Delete(int id) { var original = GetById(id); if (original == null) { throw new Exception("Invalid Delete Permissions"); } _repo.Delete(id); return("DELETED"); }
internal string Delete(int id, string userId) { var original = GetById(id); if (original.CreatorId != userId) { throw new Exception("Invalid Delete Permissions"); } _repo.Delete(id); return("delorted"); }
internal String Delete(int id, Profile userInfo) { var data = GetById(id, userInfo); if (data.CreatorId != userInfo.Id) { throw new Exception("Invalid Permissions to Delete"); } _repo.Delete(id); return("Successfully Deleted!"); }
public bool Delete(int id, string userId) { var data = FindById(id); if (data.CreatorId != userId) { throw new System.Exception("Invalid Edit Permissions"); } _repo.Delete(id); return(true); }
public IHttpActionResult DeleteJob(long id) { Job job = jobs.Get(id); if (job == null) { return(NotFound()); } jobs.Delete(id); return(Ok(job)); }
internal string Delete(int id, string userId) { var data = GetById(id); if (data.CreatorId != userId) { throw new Exception("Invalid Delete Permissions"); } _repo.Delete(id); return("DELETED"); }
internal string Delete(int id, string userId) { Job foundJob = GetById(id); if (foundJob.UserId != userId) { throw new Exception("This is not your job!"); } if (_repo.Delete(id, userId)) { return("Sucessfully delorted."); } throw new Exception("Somethin bad happened"); }
internal string Delete(int id) { Get(id); _repo.Delete(id); return("deleted"); }
internal string Delete(int id) { Get(id); _jrepo.Delete(id); return("Successfully Delorted"); }
internal string Delete(int id, string userId) { GetById(id); _jrepo.Delete(id, userId); return("Job Deleted"); }
public string Delete(int id) { _repo.Delete(id); return("Successfully Deleted"); }
internal string Delete(int id) { getByID(id); _repo.Delete(id); return("Successfully Deleted"); }
internal string Delete(int id) { GetById(id); _jobsRepository.Delete(id); return("Successfully Deleted"); }