//[AuthorizeUser(RoleModule.Address, Function.Delete)] public JsonResult DeleteAddress(AddressViewModel cViewModel) { Set_Date_Session(cViewModel.Address); using (TransactionScope tran = new TransactionScope()) { try { _AddressManager.Delete_Address_By_Id(cViewModel.Address.AddressId); //cViewModel.AddressViewModelList.Address.AddressFor = AddressFor.Address.ToString(); cViewModel.FriendlyMessage.Add(MessageStore.Get("Add03")); Logger.Debug("Address Controller Deleted Address"); tran.Complete(); } catch (Exception ex) { tran.Dispose(); cViewModel.FriendlyMessage.Add(MessageStore.Get("SYS01")); Logger.Error("Address Controller - DeleteAddress " + ex.Message); } } return(Json(cViewModel)); }