public static KaratMasterEntity[] EditData(int id)
        {
            var details = new List <KaratMasterEntity>();

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

            try
            {
                details = new KaratMasterDAO().GetKaratList();
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }