public IHttpActionResult GetByAsnIdAndStudentId(int studentId, int assignmentId) { var files = fileRepo.GetByAsnIdAndStudentId(studentId, assignmentId).ToList(); if (!files.Any()) { return(Content(HttpStatusCode.NoContent, "List is empty")); } return(Ok(files)); }