Example #1
0
 public static bool UpdateMaterialCategory(ATTMaterialCategory objMC, Previlege pobj)
 {
     try
     {
         DLLMaterialCategory.UpdateMaterialCategory(objMC, pobj);
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
        public static List <ATTMaterialCategory> GetMaterialCategory()
        {
            List <ATTMaterialCategory> MaterialCategoryLST = new List <ATTMaterialCategory>();

            foreach (DataRow row in DLLMaterialCategory.GetMaterialCategoryTable().Rows)
            {
                ATTMaterialCategory MC = new ATTMaterialCategory(int.Parse(row["CATEGORY_id"].ToString()),
                                                                 row["CATEGORY_name"].ToString(),
                                                                 "empty",
                                                                 row["DESCRIPTION"].ToString()
                                                                 );
                MaterialCategoryLST.Add(MC);
            }

            return(MaterialCategoryLST);
        }