public static int Delete(Categories Category)
        {
            dCategory _dCategory = new dCategory();

            if (Convert.ToBoolean(ConfigurationSettings.AppSettings["IsEmailEnable"]))
            {
                string mailBody = MailHelper.ActivityMail("Sub Category", "Category Deletion done on " + Category.Category_Title +
                                                          "( " + Category.Category_Id + "  and " + Category.CategoryCode + " ) successfully.",
                                                          Category.Administrators_Id, DateTime.Now.ToString());

                MailHelper.SendEmail(MailHelper.EmailToSend(), "Category Deletion ", mailBody, "Rachna Teracotta : Activity Admin");
            }
            return(_dCategory.Delete(Category));
        }
        public static List <Categories> List()
        {
            dCategory _dCategory = new dCategory();

            return(_dCategory.List());
        }