public IHttpActionResult Delete([FromBody] int lesson) { try { Lesson.Delete(lesson); return(Ok()); } catch (Exception e) { LogManager.LogException(e); return(InternalServerError(e)); } }