public async Task<IHttpActionResult> DeleteStudent(Guid id) { try { using (StudentLogic sl = new StudentLogic()) { await sl.DeleteStudent(id); return Ok(); } } catch (Exception ex) { Helper.ErrorLogging.LogError(ex); return InternalServerError(ex); } }