public bool Adddoc(FormViewParameter Parameter) { Guid DocumentTypeId = Guid.NewGuid(); //string curUser = Thread.CurrentPrincipal.Identity.Name; IGRSS.DataAccessLayer.Adjudication.DocumentMasterRow row = (IGRSS.DataAccessLayer.Adjudication.DocumentMasterRow)Parameter.Values; IgrssAdapters.DocumentAdapter.Addnew(row.Name, row.Description); return(true); }
public bool UpdateDocumentMaster(FormViewParameter Parameter, Guid DocumentTypeId) { string curUser = Thread.CurrentPrincipal.Identity.Name; IGRSS.DataAccessLayer.Adjudication.DocumentMasterRow row = (IGRSS.DataAccessLayer.Adjudication.DocumentMasterRow)Parameter.Values; IgrssAdapters.DocumentAdapter.UpdateDocumentMaster(DocumentTypeId, row.Name, row.Description, curUser, DateTime.Now); return(true); }