예제 #1
0
        public JsonResult AccepLandlordRequest(int requestId)
        {
            var user   = User.Identity.Name;
            var files  = Request.Files;
            var login  = AccountService.GetLoginByEmail(user);
            var result = TenantService.AccepLandlordRequest(requestId);

            if (result.IsSuccess)
            {
                return(Json(new { Success = true, Message = "Request accepted successfull!" }));
            }
            else
            {
                return(Json(new { Success = false, ErrorMsg = result.ErrorMessage }));
            }
        }