private void Fixupdoctype(doctype previousValue) { if (previousValue != null && previousValue.customerdocdetails.Contains(this)) { previousValue.customerdocdetails.Remove(this); } if (doctype != null) { if (!doctype.customerdocdetails.Contains(this)) { doctype.customerdocdetails.Add(this); } if (Cust_Doc_DocId != doctype.Doc_Id) { Cust_Doc_DocId = doctype.Doc_Id; } } }
private void Fixupdoctype(doctype previousValue) { if (previousValue != null && previousValue.authrepdocdetails.Contains(this)) { previousValue.authrepdocdetails.Remove(this); } if (doctype != null) { if (!doctype.authrepdocdetails.Contains(this)) { doctype.authrepdocdetails.Add(this); } if (AuthRep_Doc_DocId != doctype.Doc_Id) { AuthRep_Doc_DocId = doctype.Doc_Id; } } }
private void Fixupdoctype(doctype previousValue) { if (previousValue != null && previousValue.standalonetruckdocdetails.Contains(this)) { previousValue.standalonetruckdocdetails.Remove(this); } if (doctype != null) { if (!doctype.standalonetruckdocdetails.Contains(this)) { doctype.standalonetruckdocdetails.Add(this); } if (StandaloneTruck_Doc_DocId != doctype.Doc_Id) { StandaloneTruck_Doc_DocId = doctype.Doc_Id; } } }
/// <summary> /// Save Cust Document Type Info /// </summary> /// <param name="docTypeDetails"></param> /// <returns></returns> public int SaveCustDocumentTypeInfo(DocTypeDTO docTypeDetails) { doctype doctypeEntity = new doctype(); AutoMapper.Mapper.Map(docTypeDetails, doctypeEntity); ESalesUnityContainer.Container.Resolve<IGenericRepository<doctype>>().Save(doctypeEntity); //return value return doctypeEntity.Doc_Id; }