public async Task <JsonResult> Delete(RoomEntityModel room) { return(new JsonResult(await _roomlogic.Delete(room.Id))); }
public async Task <JsonResult> Update(RoomEntityModel room) { return(new JsonResult(await _roomlogic.Update(new Room(room.Id, room.Name, room.Description)))); }
public async Task <JsonResult> Create(RoomEntityModel room) { return(new JsonResult(await _roomlogic.Add(new Room(0, room.Name, room.Description)))); }