/// <summary> /// deletes todo item /// </summary> /// <param name="id">id of todo to delete</param> /// <returns></returns> public IHttpActionResult Delete(int id) { try { _todosService.Delete(id); return(Ok()); } catch (Exception ex) { return(InternalServerError(ex)); throw; } }