public async Task DeleteDeskAsync(Models.Desk desk) { try { await _deskRepository.DeleteDeskAsync(desk.ToEntity()); } catch (System.Exception) { throw; } }
// Desk public static Entities.Desk ToEntity(this Models.Desk desk) { return(new Entities.Desk { DeskId = desk.DeskId, Name = desk.Name, Flex = desk.Flex, LocationX = desk.LocationX, LocationY = desk.LocationY, RoomId = desk.RoomId }); }