예제 #1
0
        public ActionResult UpdateMasterCategory(int Category)
        {
            ModelMasterCategory model = new ModelMasterCategory();

            if (Category > 0)
            {
                MasterCategoryDTO _result = _IMasterCategory.Admin_MasterCategoryOnCategoryId(Category);
                model.CategoryId   = _result.CategoryId;
                model.CategoryName = _result.CategoryName;
            }


            return(View(model));
        }
예제 #2
0
 public MasterCategoryDTO Admin_MasterCategoryOnCategoryId(int categoryId)
 {
     try
     {
         MasterCategoryDTO _returnResult = SqlHelper.QuerySP <MasterCategoryDTO>("Admin_MasterCategoryOnCategoryId",
                                                                                 new
         {
             CategoryId = categoryId
         }).ToList().FirstOrDefault();
         return(_returnResult);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }