internal void DeleteRequisition(int id) { _unitOfWork.BeginTransaction(); _requisitionRepo.Delete(id); _unitOfWork.Commit(); }
public IActionResult DeleteJobList(long jobId) { JobList jobList = _repository.Get(jobId); if (jobList == null) { return(NotFound("Job List Record not Found!!!!")); } _repository.Delete(jobList); return(GetJobList()); }
public IActionResult DeleteStudent(long studentId) { Student student = _dataRepository.Get(studentId); if (student == null) { return(NotFound("Student record not found !!!")); } _dataRepository.Delete(student); return(GetStudent()); }
public IActionResult DeleteEducation(long educationsId) { Education educations = _repository.Get(educationsId); if (educations == null) { return(NotFound("Education Record not Found!!!!")); } _repository.Delete(educations); return(GetEducation()); }
public IActionResult DeleteAddress(long addressId) { Address address = _repository.Get(addressId); if (address == null) { return(NotFound("Job List Record not Found!!!!")); } _repository.Delete(address); return(GetAddress()); }
public IActionResult DeleteEmployer(long employerId) { Employer employer = _repository.Get(employerId); if (employer == null) { return(NotFound("Employer Record not Found!!!!")); } _repository.Delete(employer); return(GetEmployer()); }
public IActionResult DeleteExhibit(long exhibitId) { Exhibit exhibit = _dataRepository.Get(exhibitId); if (exhibit == null) { return(NotFound("Exhibit record not found !!!")); } _dataRepository.Delete(exhibit); return(GetExhibit()); }
public IActionResult DeleteQuestionXDuration(long testXQuestionId) { TestXQuestion testXQuestion = _dataRepository.Get(testXQuestionId); if (testXQuestion == null) { return(NotFound("TestXQuestion record not found !!!")); } _dataRepository.Delete(testXQuestion); return(GetTestXQuestion()); }
public IActionResult DeleteCustomer(long customerId) { Customer customer = _dataRepository.Get(customerId); if (customer == null) { return(NotFound("Customer record not found !!!")); } _dataRepository.Delete(customer); return(GetCustomer()); }
public IActionResult DeleteShippment(long ShippmentId) { Shippment shippment = _dataRepository.Get(ShippmentId); if (shippment == null) { return(NotFound("Shippment record not found !!!")); } _dataRepository.Delete(shippment); return(GetPayment()); }
public IActionResult DeleteExperience(long experiencesId) { Experience experiences = _repository.Get(experiencesId); if (experiences == null) { return(NotFound("Experience Record not Found!!!!")); } _repository.Delete(experiences); return(GetExperience()); }
public IActionResult DeleteStock(long StockId) { Stock stock = _dataRepository.Get(StockId); if (stock == null) { return(NotFound("stock record not found !!!")); } _dataRepository.Delete(stock); return(GetStock()); }
public IActionResult DeleteItem(long itemId) { Item item = _dataRepository.Get(itemId); if (item == null) { return(NotFound("Item record not found !!!")); } _dataRepository.Delete(item); return(GetItem()); }
public IActionResult DeleteBrand(long cancelOrderId) { CancelOrder cancelOrder = _dataRepository.Get(cancelOrderId); if (cancelOrder == null) { return(NotFound("Cancel Order record not found !!!")); } _dataRepository.Delete(cancelOrder); return(GetCancelOrder()); }
public IActionResult DeletePurchse(long PurchaseID) { Purchase purchase = _dataRepository.Get(PurchaseID); if (purchase == null) { return(NotFound("purchase record not found !!!")); } _dataRepository.Delete(purchase); return(Getpurchase()); }
public IActionResult DeleteOrganization(long organizationId) { Organization organization = _dataRepository.Get(organizationId); if (organization == null) { return(NotFound("Organization record not found !!!")); } _dataRepository.Delete(organization); return(GetOrganization()); }
public IActionResult DeleteCompanyAddress(long applyJobsId) { CompanyAddress companyAddresses = _repository.Get(applyJobsId); if (companyAddresses == null) { return(NotFound("CompanyAddress Record not Found!!!!")); } _repository.Delete(companyAddresses); return(GetCompanyAddress()); }
public IActionResult DeleteTest(long testId) { Test test = _dataRepository.Get(testId); if (test == null) { return(NotFound("Test record not found !!!")); } _dataRepository.Delete(test); return(GetTest()); }
public IActionResult DeleteBrand(long brandId) { Brand brand = _dataRepository.Get(brandId); if (brand == null) { return(NotFound("brand record not found !!!")); } _dataRepository.Delete(brand); return(GetBrand()); }
public IActionResult DeletePayment(long PaymentId) { Payment payment = _dataRepository.Get(PaymentId); if (payment == null) { return(NotFound("payment record not found !!!")); } _dataRepository.Delete(payment); return(GetPayment()); }
public IActionResult DeleteTestXPaper(long testXPaperId) { TestXPaper testXPaper = _dataRepository.Get(testXPaperId); if (testXPaper == null) { return(NotFound("TestXPaper record not found !!!")); } _dataRepository.Delete(testXPaper); return(GetTestXPaper()); }
public IActionResult DeleteRegistration(long registrationId) { Registration registration = _dataRepository.Get(registrationId); if (registration == null) { return(NotFound("Registration record not found !!!")); } _dataRepository.Delete(registration); return(GetRegistration()); }
public IActionResult DeleteQuestionXDuration(long questionXDurationId) { QuestionXDuration questionX = _dataRepository.Get(questionXDurationId); if (questionX == null) { return(NotFound("QuestionXDuration record not found !!!")); } _dataRepository.Delete(questionX); return(GetQuestionXDuration()); }
public IActionResult DeleteTraining(long trainingsId) { Training trainings = _repository.Get(trainingsId); if (trainings == null) { return(NotFound("Training Record not Found!!!!")); } _repository.Delete(trainings); return(GetTraining()); }
public IActionResult DeleteSupplier(long supplierId) { Supplier supplier = _dataRepository.Get(supplierId); if (supplier == null) { return(NotFound("supplier record not found !!!")); } _dataRepository.Delete(supplier); return(GetSupplier()); }
public IActionResult DeleteOrderDetail(long orderDetailId) { OrderDetail orderDetail = _dataRepository.Get(orderDetailId); if (orderDetail == null) { return(NotFound("OrderDetail record not found !!!")); } _dataRepository.Delete(orderDetail); return(GetOrderDetail()); }
public IActionResult DeleteCategory(long categoryId) { Category category = _dataRepository.Get(categoryId); if (category == null) { return(NotFound("Category record not found !!!")); } _dataRepository.Delete(category); return(GetCategory()); }
public IActionResult DeleteSubject(long subjectId) { Subject subject = _dataRepository.Get(subjectId); if (subject == null) { return(NotFound("Subject record not found !!!")); } _dataRepository.Delete(subject); return(GetSubject()); }
public IActionResult DeleteAdmin(long adminId) { AdminPanel adminPanel = _dataRepository.Get(adminId); if (adminPanel == null) { return(NotFound("Admin record not found !!!")); } _dataRepository.Delete(adminPanel); return(GetAdminPanel()); }
public IActionResult DeletePersonalDetail(long personalDetailsId) { PersonalDetail personalDetails = _repository.Get(personalDetailsId); if (personalDetails == null) { return(NotFound("Personal Detail Record not Found!!!!")); } _repository.Delete(personalDetails); return(GetPersonalDetail()); }