Пример #1
0
        public ActionResult GuestEdit(客人信息DTO dto)
        {
            客人信息DTO model = new 客人信息DTO();

            if (dto.Id > 0)
            {
                model = _iGuestService.GetDTO(dto.Id);
            }

            return(View(model));
        }
Пример #2
0
        public ActionResult GuestSave(客人信息DTO dto)
        {
            var json = new
            {
                code  = 0,
                msg   = "保存成功",
                count = 0,
                data  = ""
            };

            _iGuestService.Save(dto);
            return(Json(json));
        }
Пример #3
0
        public ActionResult GuestList(客人信息DTO dTO)
        {
            var 客人   = _iGuestService.List(dTO);
            var json = new
            {
                code  = 0,
                msg   = "",
                count = 0,
                data  = 客人.ToArray()
            };

            return(Json(json));
        }
Пример #4
0
        public JsonResult GuestDelete(客人信息DTO dto)
        {
            var json = new
            {
                code  = 0,
                msg   = "删除成功",
                count = 0,
                data  = ""
            };

            if (dto.Id > 0)
            {
                _iGuestService.Del(dto);
            }

            return(Json(json));
        }