public BusinessModels.PurchaseRequest Insert(BusinessModels.PurchaseRequest PurchaseRequest) { BusinessModels.CompanyType mdcomp = _comptypedataLayer.GetCompanyType(PurchaseRequest.CompanyTypeID); string companyName = mdcomp.Company.CompanyName; PurchaseRequest.CaseNo = "Case#" + GetRandomAlphanumericString(); PurchaseRequest.POCode = companyName + "#PO" + GetRandomAlphanumericString(); return(_dataLayer.Insert(PurchaseRequest)); }
public Boolean Update(BusinessModels.PurchaseRequest PurchaseRequest) { return(_dataLayer.Update(PurchaseRequest)); }