コード例 #1
0
 public ActionResult HotelEdit(int?Id)
 {
     Models.HotelDTO model = new Models.HotelDTO();
     if (Id > 0)
     {
         model = _iHotelService.GetHotel(Id.Value);
     }
     return(View(model));
 }
コード例 #2
0
        public JsonResult HotelSave(Models.HotelDTO dto)
        {
            var result = _iHotelService.SaveOrUpdateHotel(dto);

            return(Json(result));
        }