public IEnumerable <AssignmentVM> Get(string dictaatName) { string userId = ""; if (HttpContext.User != null) { userId = _userManager.GetUserId(HttpContext.User); } return(_assignmentRepo.GetAllAssignments(dictaatName, userId)); }
public ActionResult <IEnumerable <AssignmentDto> > findAllAssignment() { var assignments = _repository.GetAllAssignments(); return(Ok(_mapper.Map <IEnumerable <AssignmentDto> >(assignments))); }
public IActionResult List() { return(View(_assignmentRepository.GetAllAssignments())); }