Beispiel #1
0
 /// <summary>
 /// creates new todo item
 /// </summary>
 /// <param name="todoModel">todo model to create</param>
 /// <returns>created todo model</returns>
 public IHttpActionResult Post(TodoModel todoModel)
 {
     try
     {
         return(Ok(_todosService.Create(todoModel)));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }