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