public static LedgerTypeMasterEntity[] EditData(int id) { var details = new List <LedgerTypeMasterEntity>(); try { details = new LedgerTypeMasterDAO().EditLedgerType(id); } catch (Exception ex) { //details.Add(new DbStatusEntity(ex.Message)); } return(details.ToArray()); }
public static LedgerTypeMasterEntity[] GetData() //Show the details of the data after insert in HTML Table { var details = new List <LedgerTypeMasterEntity>(); try { details = new LedgerTypeMasterDAO().GetLedgerTypeMasterList(); } catch (Exception ex) { // details.Add(new DbStatusEntity(ex.Message)); } return(details.ToArray()); }