Example #1
0
 public BasesController()
 {
     _addressRes = new AddressRepository();
     _historyRes = new HistoryRepository();
     _userRes    = new UserRepository();
     user        = new User {
         U_FullName = "Đặng Việt Hùng", U_User = "******"
     };
 }
Example #2
0
        public JsonResult delete(string aid, string reasons)
        {
            //TODO: Kiem tra dang nhap
            if (Request.IsAjaxRequest())
            {
                bool b = _addressRes.Address_Delete(aid, User.Identity.Name, reasons);

                Address.Business.Entities.User u = _userRes.User_GetDetail(User.Identity.Name);
                return(Json(new { success = b, urole = u.U_Role }));
            }
            else
            {
                return(Json(string.Empty));
            }
        }