public IHttpActionResult Post([FromBody] RoomInsertReq model) { var result = _roomServices.Create(model); return(ApiHelper.ReturnHttpAction(result, this)); }
public ActionResult Create(RoomDTO roomDTO) { _db.Create(roomDTO); return(RedirectToAction("Index")); }