public IActionResult GetAllAssignment() { try { dynamic jsonString = _assignmentService.GetAllAssignment(); return(Ok(jsonString)); } catch (Exception e) { throw e; } }
public async Task <IHttpActionResult> GetAllAssignment() { List <AssignmentModel> ListAssignment = (await _AssignmentService.GetAllAssignment()); return(Json(ListAssignment)); }