Esempio n. 1
0
        public IHttpActionResult Post([FromBody] RoomInsertReq model)
        {
            var result = _roomServices.Create(model);

            return(ApiHelper.ReturnHttpAction(result, this));
        }
Esempio n. 2
0
 public ActionResult Create(RoomDTO roomDTO)
 {
     _db.Create(roomDTO);
     return(RedirectToAction("Index"));
 }