Exemplo n.º 1
0
 private string Update(IToDoItem toDoItem)
 {
     try
     {
         if (_toDoMapper.Update(toDoItem))
         {
             return(toDoItem.Id);
         }
         else
         {
             throw new Exception("No todo items updated");
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }