public Enrollment PromoteStudent(StudentPromotionDTO promotion) { var result = db.Enrollment.FromSqlRaw("EXECUTE procedurePromoteStudents {0}, {1}", promotion.Studies, promotion.Semester).AsEnumerable().First(); return(result); }
public IActionResult PromoteStudent(StudentPromotionDTO promotion) { return(Created("enrollments/promotions", new EnrollmentDTO(dbService.PromoteStudent(promotion)))); }