예제 #1
0
 public async Task DeleteDeskAsync(Models.Desk desk)
 {
     try
     {
         await _deskRepository.DeleteDeskAsync(desk.ToEntity());
     }
     catch (System.Exception)
     {
         throw;
     }
 }
예제 #2
0
 // 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
     });
 }