public async Task<IHttpActionResult> GetStudents() { try { using (StudentLogic sl = new StudentLogic()) { List<Student> students = sl.GetStudents(); return Ok(students); } } catch (Exception ex) { Helper.ErrorLogging.LogError(ex); return InternalServerError(ex); } }