public int AddRoom(MvRoom room) { roomId = 0; ActionProcedures.SpRoomIns(JsonConvert.SerializeObject(room, new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() }), ref roomId); return(roomId); }
public IActionResult EditRoom([FromBody] MvRoom room) { try { roomService.EditRoom(room); return(Ok()); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public IActionResult Room([FromBody] MvRoom room) { try { int roomId = roomService.AddRoom(room); return(Ok(roomId)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public void EditRoom(MvRoom room) { ActionProcedures.SpRoomUpd(JsonConvert.SerializeObject(room, new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() })); }