public void Delete(int id) { var SubContractCompany = new SubContractCompany { SubContractCompanyId = id }; unitOfWork.SubContractCompanyRepository.Delete(SubContractCompany); unitOfWork.Save(); }
public void Create(SubContractCompanyViewModel subContractCompanyVM) { var SubContractCompany = new SubContractCompany { SubContractCompanyName = subContractCompanyVM.SubContractCompanyName }; unitOfWork.SubContractCompanyRepository.Insert(SubContractCompany); unitOfWork.Save(); }
public void Update(SubContractCompanyViewModel subContractCompanyVM) { var SubContractCompany = new SubContractCompany { SubContractCompanyId = subContractCompanyVM.SubContractCompanyId, SubContractCompanyName = subContractCompanyVM.SubContractCompanyName }; unitOfWork.SubContractCompanyRepository.Update(SubContractCompany); unitOfWork.Save(); }