//[AuthorizeUser(RoleModule.SubCategory, Function.Edit)] public JsonResult Update(SubcategoryViewModel dViewModel) { Set_Date_Session(dViewModel.SubcategoryInfo); using (TransactionScope tran = new TransactionScope()) { try { _subcatManager.Update_Subcategory(dViewModel.SubcategoryInfo); dViewModel.FriendlyMessage.Add(MessageStore.Get("SUBCATEGORY02")); tran.Complete(); Logger.Debug("Subcategory Controller Update"); } catch (Exception ex) { tran.Dispose(); dViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01")); Logger.Error("Subcategory Controller - Update " + ex.Message); } } return(Json(dViewModel)); }