Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        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());
        }