| | 1 | | using Syki.Back.Features.Academic.CreateCourse; |
| | 2 | | using Syki.Back.Features.Academic.CreateCampus; |
| | 3 | | using Syki.Back.Features.Academic.CreateCourseCurriculum; |
| | 4 | |
|
| | 5 | | namespace Syki.Back.Features.Academic.CreateCourseOffering; |
| | 6 | |
|
| | 7 | | public class CourseOffering |
| | 8 | | { |
| 842 | 9 | | public Guid Id { get; set; } |
| 422 | 10 | | public Guid InstitutionId { get; set; } |
| 422 | 11 | | public Guid CampusId { get; set; } |
| 213 | 12 | | public Campus Campus { get; set; } |
| 422 | 13 | | public Guid CourseId { get; set; } |
| 217 | 14 | | public Course Course { get; set; } |
| 634 | 15 | | public Guid CourseCurriculumId { get; set; } |
| 213 | 16 | | public CourseCurriculum CourseCurriculum { get; set; } |
| 634 | 17 | | public string Period { get; set; } |
| 634 | 18 | | public Shift Shift { get; set; } |
| | 19 | |
|
| 422 | 20 | | public CourseOffering( |
| 422 | 21 | | Guid institutionId, |
| 422 | 22 | | Guid campusId, |
| 422 | 23 | | Guid courseId, |
| 422 | 24 | | Guid courseCurriculumId, |
| 422 | 25 | | string period, |
| 422 | 26 | | Shift shift |
| 422 | 27 | | ) { |
| 422 | 28 | | Id = Guid.NewGuid(); |
| 422 | 29 | | InstitutionId = institutionId; |
| 422 | 30 | | CampusId = campusId; |
| 422 | 31 | | CourseId = courseId; |
| 422 | 32 | | CourseCurriculumId = courseCurriculumId; |
| 422 | 33 | | Period = period; |
| 422 | 34 | | Shift = shift; |
| 422 | 35 | | } |
| | 36 | |
|
| | 37 | | public CourseOfferingOut ToOut() |
| | 38 | | { |
| 211 | 39 | | return new CourseOfferingOut |
| 211 | 40 | | { |
| 211 | 41 | | Id = Id, |
| 211 | 42 | | Campus = Campus.Name, |
| 211 | 43 | | Course = Course.Name, |
| 211 | 44 | | CourseCurriculumId = CourseCurriculumId, |
| 211 | 45 | | CourseCurriculum = CourseCurriculum.Name, |
| 211 | 46 | | Period = Period, |
| 211 | 47 | | Shift = Shift, |
| 211 | 48 | | }; |
| | 49 | | } |
| | 50 | | } |