/// <summary> /// The SendPushNotificationToTeacher. /// </summary> /// <param name="model">The model<see cref="StudentAssessment"/>.</param> /// <returns>The <see cref="Task"/>.</returns> private async Task SendPushNotificationToTeacher(StudentAssessment model) { try { var assessments = await _tableStorage.GetAllAsync <Entites.Assessment>("Assessments"); var assessment = assessments.SingleOrDefault(a => a.RowKey == model.AssessmentId); var pushNotification = new PushNotification { Title = model.StudentName, Body = $"Assessment {assessment.SubjectName} - {assessment.AssessmentTitle} submitted" }; var userData = await _tableStorage.GetAllAsync <Entites.User>("User"); var users = userData.Where(u => u.Role == Role.Teacher.ToString() && u.RowKey == assessment.CreatedBy); foreach (var user in users) { if (!String.IsNullOrEmpty(user.NotificationToken)) { pushNotification.RecipientDeviceToken = user.NotificationToken; await _pushNotificationService.SendAsync(pushNotification); } } } catch (Exception ex) { throw new AppException("Exception thrown in Notify Service: ", ex.InnerException); } }
/// <summary> /// Updates or creates a resource based on the resource identifier. The PUT operation is used to update or create a resource by identifier. If the resource doesn't exist, the resource will be created using that identifier. Additionally, natural key values cannot be changed using this operation, and will not be modified in the database. If the resource "id" is provided in the JSON body, it will be ignored as well. /// </summary> /// <param name="id">A resource identifier specifying the resource to be updated.</param> /// <param name="IfMatch">The ETag header value used to prevent the PUT from updating a resource modified by another consumer.</param> /// <param name="body">The JSON representation of the "studentAssessment" resource to be updated.</param> /// <returns>A RestSharp <see cref="IRestResponse"/> instance containing the API response details.</returns> public IRestResponse PutStudentAssessment(string id, string IfMatch, StudentAssessment body) { var request = new RestRequest("/studentAssessments/{id}", Method.PUT); request.RequestFormat = DataFormat.Json; request.AddUrlSegment("id", id); // verify required params are set if (id == null || body == null) { throw new ArgumentException("API method call is missing required parameters"); } request.AddHeader("If-Match", IfMatch); request.AddBody(body); request.Parameters.First(param => param.Type == ParameterType.RequestBody).Name = "application/json"; var response = client.Execute(request); var location = response.Headers.FirstOrDefault(x => x.Name == "Location"); if (location != null && !string.IsNullOrWhiteSpace(location.Value.ToString())) { body.id = location.Value.ToString().Split('/').Last(); } return(response); }
public static StudentAssessmentv3 MapToStudentAssessmentv3(this StudentAssessment a) { return(new StudentAssessmentv3 { Accomodations = a.Accommodations?.Select(b => b.MapToStudentAssessmentAccommodationv3()), AdministrationDate = a.AdministrationDate.MapToYYYYMMdd(), AdministrationEndDate = a.AdministrationEndDate.MapToYYYYMMdd(), AdministrationEnvironmentDescriptor = a.AdministrationEnvironmentType?.MapToAdministrationEnvironmentDescriptorv3(), AdministrationLanguageDescriptor = a.AdministrationLanguageDescriptor?.MapToAdministrationLanguageDescriptorv3(), AssessmentReference = a.AssessmentReference?.MapToAssessmentReferencev3(), EventCircumstanceDescriptor = a.EventCircumstanceType?.MapToEventCircumstanceDescriptorv3(), EventDescriptor = a.EventDescription, Id = a.Id, Items = a.Items?.Select(b => b.MapToStudentAssessmentItemv3()), PerformanceLevels = a.PerformanceLevels?.Select(b => b.MapToStudentAssessmentPerformanceLevelv3()), PlatformTypeDescriptor = null, // TODO Check ReasonNotTestedDescriptor = a.ReasonNotTestedType?.MapToReasonNotTestedDescriptorv3(), RetestIndicatorDescriptor = a.RetestIndicatorType?.MapToRetestIndicatorDescriptorv3(), SchoolYearReferenceType = null, // TODO Check ScoreResults = a.ScoreResults?.Select(b => b.MapToStudentAssessmentScoreResultv3()), SerialNumber = a.SerialNumber, StudentAssessmentIdentifier = a.Identifier, StudentObjectiveAssessments = a.StudentObjectiveAssessments?.Select(b => b.MapToStudentAssessmentStudentObjectiveAssessmentv3()), StudentReference = new StudentReferencev3 { Link = new LinkReferencev3 { Href = a.StudentReference?.Link?.Href, Rel = a.StudentReference?.Link?.Rel, }, StudentUniqueId = a.StudentReference?.StudentUniqueId, }, WhenAssessedGradeLevelDescriptor = a.WhenAssessedGradeLevelDescriptor?.MapToWhenAssessedGradeLevelDescriptorv3(), }); }
/// <summary> /// The CreateStudentAssessment. /// </summary> /// <param name="model">The model<see cref="StudentAssessment"/>.</param> /// <returns>The <see cref="Task"/>.</returns> public async Task CreateStudentAssessment(StudentAssessment model) { var studentAssessmentId = String.IsNullOrEmpty(model.Id) ? Guid.NewGuid().ToString() : model.Id; var studentAssessment = new Entites.StudentAssessment(model.SchoolId, studentAssessmentId) { StudentId = model.StudentId, StudentName = model.StudentName, AssessmentId = model.AssessmentId, ClassId = model.ClassId, AssessmentAnswers = JsonConvert.SerializeObject(model.AssessmentAnswers), Active = true, CreatedBy = model.StudentId, UpdatedOn = DateTime.UtcNow, UpdatedBy = model.StudentId, }; try { await _tableStorage.AddAsync("StudentAssessments", studentAssessment); await SendPushNotificationToTeacher(model); } catch (Exception ex) { throw new AppException("Create student assessment error: ", ex.InnerException); } }
public ActionResult DeleteConfirmed(int id) { StudentAssessment studentAssessment = db.StudentAssessments.Find(id); db.StudentAssessments.Remove(studentAssessment); db.SaveChanges(); return(RedirectToAction("Index")); }
//[ValidateAntiForgeryToken] public ActionResult Create(List <StudentViewModel> studentVms, int classroomId, int assessmentId, string feedback) { var nullMark = false; var totalMark = db.Assessments.Where(h => h.AssessmentID == assessmentId).Select(h => h.TotalMark).FirstOrDefault(); foreach (var item in studentVms) { if (item.Mark < 0 || totalMark < item.Mark) { nullMark = true; } } if (!nullMark) { foreach (var item in studentVms) { var studentAssessment = new StudentAssessment(); var getMark = db.StudentAssessments.Where(c => c.StID == item.StID && c.AssessmentID == item.AssessmentId).FirstOrDefault(); var getAssessment = db.OnlineAssessments.Where(o => o.AssessmentID == item.AssessmentId).FirstOrDefault(); var getStaffId = db.Staffs.Where(i => i.Email == User.Identity.Name).Select(o => o.StaffId).FirstOrDefault(); if (getAssessment != null) { getAssessment.Feedback = item.Feedback; getAssessment.StaffId = getStaffId; db.Entry(getAssessment).State = EntityState.Modified; } if (getMark != null) { getMark.Mark = item.Mark; db.Entry(getMark).State = EntityState.Modified; } else { studentAssessment.StID = item.StID; studentAssessment.AssessmentID = item.AssessmentId; studentAssessment.Mark = item.Mark; db.StudentAssessments.Add(studentAssessment); } db.SaveChanges(); } } else { ViewBag.ClassroomId = classroomId; ViewBag.AssessmentId = assessmentId; ViewBag.AssessmentName = db.Assessments.Where(c => c.AssessmentID == assessmentId).Select(c => c.AssessmentName).FirstOrDefault(); ViewBag.GradeName = db.ClassRooms.Where(d => d.ClassRoomID == classroomId).Select(d => d.GradeName).FirstOrDefault(); ViewBag.Subject = db.Assessments.Where(d => d.AssessmentID == assessmentId).Select(d => d.Subject.SubjectName).FirstOrDefault(); ViewBag.Term = db.Assessments.Where(d => d.AssessmentID == assessmentId).Select(d => d.Term.Name).FirstOrDefault(); ModelState.AddModelError("", "A mark cannot be less than zero or greater than the total mark : " + totalMark); return(View(GetStudents(classroomId, assessmentId))); } return(RedirectToAction("Index")); }
public async Task <StudentAssessment> CreateAssociation(ScoringAssessmentPostBody body) { var ods = await _odsApiClientProvider.NewResourcesClient(); var assessment = await ods.Get <Assessment>($"assessments/{body.AssessmentId}"); var studentAssessment = new StudentAssessment { AdministrationDate = DateTime.Parse(body.AdministrationDate), AdministrationEndDate = DateTime.Parse(body.AdministrationDate), // TODO Set AdministrationEndDate AssessmentReference = new StudentAssessmentAssessmentReference { Identifier = assessment.Identifier, NamespaceProperty = assessment.NamespaceProperty, }, StudentReference = new StudentAssessmentStudentReference { StudentUniqueId = body.StudentUniqueId, }, Accommodations = new List <StudentAssessmentAccommodationsItem>(), AdministrationEnvironmentType = null, AdministrationLanguageDescriptor = null, EventCircumstanceType = null, EventDescription = null, Id = "", Identifier = Guid.NewGuid().ToString(), Items = new List <StudentAssessmentItemsItem>(), PerformanceLevels = new List <StudentAssessmentPerformanceLevelsItem>(), ReasonNotTestedType = null, RetestIndicatorType = null, ScoreResults = new List <StudentAssessmentScoreResultsItem> // At least one score result is needed for frontend scoring assessments grid { new StudentAssessmentScoreResultsItem { AssessmentReportingMethodType = assessment.Scores == null || assessment.Scores.Count == 0 ? "Raw score" : assessment.Scores.First().AssessmentReportingMethodType, ResultDatatypeType = assessment.Scores == null || assessment.Scores.Count == 0 ? "Integer" : assessment.Scores.First().ResultDatatypeType, Result = "---", }, }, SerialNumber = null, StudentObjectiveAssessments = new List <StudentAssessmentStudentObjectiveAssessmentsItem>(), WhenAssessedGradeLevelDescriptor = await GetStudentGradeLevelDescriptor(body.StudentUniqueId), }; var response = await ods.Post("studentAssessments", studentAssessment); await ods.HandleHttpResponse(response); return(studentAssessment); }
public ActionResult Edit([Bind(Include = "StudentAssessmentID,StaffAssessmentId,StaffAssessmentName")] StudentAssessment studentAssessment) { if (ModelState.IsValid) { db.Entry(studentAssessment).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.StaffAssessmentId = new SelectList(db.Assessments, "AssessmentID", "AssessmentName", studentAssessment.StaffAssessmentId); return(View(studentAssessment)); }
public void Delete(StudentAssessment studentAssessment) { using (IDbConnection dbConnection = Connection) { dbConnection.Open(); dbConnection.Execute( "Delete From StudentAssessment Where StudentAssessmentId = @StudentAssessmentId" , new { StudentAssessmentId = studentAssessment.StudentAssessmentID } , commandType: CommandType.Text); } }
public void TranslatetAssessBDOToAssess(StudentAssessmentBDO ab, StudentAssessment a) { a.StudentAssessmentId = ab.StudentAssessmentId; a.StudentSY = ab.StudentSY; a.FeeID = (int)ab.FeeID; a.Amount = (double)ab.Fee.Amount; a.ScholarshipDiscountId = (int)ab.DiscountId; if (ab.ScholarshipDiscount.Discount.HasValue) { a.Discount = (float)ab.ScholarshipDiscount.Discount; } }
public void Update(StudentAssessment studentAssessment) { using (IDbConnection dbConnection = Connection) { dbConnection.Open(); dbConnection.Execute( "Update StudentAssessment Set " + "StudentID = @StudentID, AssessmentID = @AssessmentID, Score = @Score, AssessmentDate = @AssessmentDate" + "Where StudentAssessmentId = @StudentAssessmentId" , studentAssessment , commandType: CommandType.Text); } }
public Student RegisterAssessmentPerformance(Guid id, Guid assessmentId, int score, int numberOfQuestionsWhenTaken) { Student student = _studentRepository.FindStudentWithCoursesAndAssessmentById(id); StudentAssessment studentAssessment = student.StudentAssessments.FirstOrDefault( stdass => stdass.AssessmentId.Equals(assessmentId) ); studentAssessment.HasTaken = true; studentAssessment.score = score; return(_studentRepository.Update(student)); }
public void Insert(StudentAssessment studentAssessment) { using (IDbConnection dbConnection = Connection) { dbConnection.Open(); dbConnection.Execute( "Insert into StudentAssessment (StudentID, AssessmentID, Score, AssessmentDate) values (@StudentID, @AssessmentID, @Score, @AssessmentDate)" , new { StudentID = studentAssessment.StudentID , AssessmentID = studentAssessment.AssessmentID , Score = studentAssessment.Score , AssessmentDate = studentAssessment.AssessmentDate } , commandType: CommandType.Text); } }
// GET: StudentAssessments/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } StudentAssessment studentAssessment = db.StudentAssessments.Find(id); if (studentAssessment == null) { return(HttpNotFound()); } return(View(studentAssessment)); }
public List <StudentAssessment> GetStudentAssessment(string IDNum, string SY) { List <StudentAssessment> salist = new List <StudentAssessment>(); List <StudentAssessmentBDO> sab = new List <StudentAssessmentBDO>(); sab = sal.GetStudentAssessment(IDNum, SY); foreach (StudentAssessmentBDO s in sab) { StudentAssessment sa = new StudentAssessment(); TranslatetAssessBDOToAssess(s, sa); salist.Add(sa); } return(salist); }
// GET: StudentAssessments/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } StudentAssessment studentAssessment = db.StudentAssessments.Find(id); if (studentAssessment == null) { return(HttpNotFound()); } ViewBag.StaffAssessmentId = new SelectList(db.Assessments, "AssessmentID", "AssessmentName", studentAssessment.StaffAssessmentId); return(View(studentAssessment)); }
public Student Enroll(Guid id, Guid courseId) { Student student = _studentRepository.FindStudentWithCoursesAndAssessmentById(id); StudentCourse alreadyEnrolledCourse = student.StudentCourses .FirstOrDefault(stdcou => stdcou.CourseId.Equals(courseId)); if (alreadyEnrolledCourse != null && !alreadyEnrolledCourse.IsEnrolled) { List <StudentCourse> studentCourses = student.StudentCourses.ToList(); studentCourses.Remove(alreadyEnrolledCourse); alreadyEnrolledCourse.IsEnrolled = true; studentCourses.Add(alreadyEnrolledCourse); student.StudentCourses = studentCourses; return(_studentRepository.Update(student)); } StudentCourse studentCourse = new StudentCourse { StudentId = id, CourseId = courseId, IsEnrolled = true }; student.StudentCourses.Add(studentCourse); List <Assessment> courseAssessments = _assessmentRepository.FindAllCourseAssessment(courseId); foreach (var assessment in courseAssessments) { StudentAssessment studentAssessment = new StudentAssessment { StudentId = id, AssessmentId = assessment.Id }; student.StudentAssessments.Add(studentAssessment); } _studentRepository.Update(student); return(student); }
public Assessment AddAssessmentToStudents(Assessment assessment) { List <Student> studentOfferingCourse = _studentService.GetAllStudentOfferingACourse(assessment.CourseId); foreach (var student in studentOfferingCourse) { StudentAssessment studentAssessment = new StudentAssessment { StudentId = student.UserId, AssessmentId = assessment.Id }; assessment.StudentAssessments.Add(studentAssessment); } _assessmentRepository.Update(assessment); return(assessment); }
public async Task <IActionResult> StudentAssessment( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = "assessment/student/update")] [RequestBodyType(typeof(StudentAssessment), "Create/update student assessment")] HttpRequest request) { var validateStatus = base.AuthorizationStatus(request); if (validateStatus != System.Net.HttpStatusCode.Accepted) { return(new BadRequestObjectResult(validateStatus)); } string requestBody = await new StreamReader(request.Body).ReadToEndAsync(); StudentAssessment requestData = JsonConvert.DeserializeObject <StudentAssessment>(requestBody); await _assessmentService.CreateStudentAssessment(requestData); return(new OkObjectResult(new { message = "Student assessment created successfull." })); }
private string GetPerformanceLevel(StudentAssessment studentAssessment) { var studentScore = Convert.ToDecimal(studentAssessment.StudentAssessmentScoreResults.First().Result); var assessmentPerformanceLevels = studentAssessment.Assessment.AssessmentPerformanceLevels.ToList(); var sortedPerformanceLevels = assessmentPerformanceLevels.OrderByDescending(apl => Convert.ToDecimal(apl.MinimumScore)); var studentPerformanceLevel = sortedPerformanceLevels.FirstOrDefault(pl => studentScore >= Convert.ToDecimal(pl.MinimumScore)); var result = PerformanceLevelDescriptorEnum.NotMastered; if (studentPerformanceLevel != null) { result = ((PerformanceLevelDescriptorEnum)studentPerformanceLevel.PerformanceLevelDescriptorId); } return(result.Humanize()); }
public StudentAssessment Build(EnterResultsStudentModel enterResultsStudentModel, Data.Entities.Assessment assessment) { var target = new StudentAssessment { StudentUSI = enterResultsStudentModel.StudentUsi, AssessmentTitle = assessment.AssessmentTitle, AcademicSubjectDescriptorId = assessment.AcademicSubjectDescriptorId, AssessedGradeLevelDescriptorId = assessment.AssessedGradeLevelDescriptorId, Version = assessment.Version, AdministrationDate = assessment.AdministeredDate }; var studentAssessmentScoreResult = _enterResultsStudentModelToStudentAssessmentScoreResultMapper.Build(enterResultsStudentModel, assessment); target.StudentAssessmentScoreResults.Add(studentAssessmentScoreResult); return(target); }
public async Task <IActionResult> OnGetAsync(int?StudentId, int?AssesmentId) { if (StudentId == null || AssesmentId == null) { return(NotFound()); } StudentAssessment = await _context.StudentAssessment .Include(s => s.Assessment) .Include(s => s.Student) .Where(s => s.AssessmentID == AssesmentId) .Where(s => s.StudentID == StudentId) .FirstOrDefaultAsync(); if (StudentAssessment == null) { return(NotFound()); } return(Page()); }
public EditPerformance(Lecturer loggedIn, Window from, ref StudentAssessment performance) : this(loggedIn, from) { _performance = performance; txtMark.Text = _performance.Mark.ToString(); txtTotalMark.Text = _performance.Assessment.TotalMarks.ToString(); cboUnit.ItemsSource = new List <Unit>() { performance.Assessment.unit }; cboUnit.SelectedIndex = 0; cboAssessment.ItemsSource = new List <Assessment>() { performance.Assessment }; cboAssessment.SelectedIndex = 0; lblStudent.Content += " " + _performance.account.LastName + " " + _performance.account.FirstName; }
public static string CreateStudentAssessment( string assessmentIdentifier, string assessmentNamespace, string studentAssessmentIdentifier, string studentUniqueId, DateTime?administrationDate = null) { var studentAssessment = new StudentAssessment { AssessmentReference = AssessmentReference(assessmentIdentifier, assessmentNamespace), StudentAssessmentIdentifier = studentAssessmentIdentifier, AdministrationDate = administrationDate.GetValueOrDefault(DateTime.UtcNow), StudentReference = new StudentReference { StudentUniqueId = studentUniqueId } }; return(JsonConvert.SerializeObject(studentAssessment)); }
public async Task OnGetAsync(int studentId, int classId) { StudentAssessment = await _context.StudentAssessment .Include(s => s.Student) .Where(s => s.StudentID == studentId) .Where(s => s.Assessment.ClassID == classId) .ToListAsync(); IList <Assessment> assessments = await _context.Assessment .Where(c => c.ClassID == classId) .ToListAsync(); int i = 0; //Add grades into database if not already there while (StudentAssessment.Count != assessments.Count) { StudentAssessment sa = await _context.StudentAssessment .Where(s => s.StudentID == studentId) .Where(a => a.AssessmentID == assessments[i].AssessmentId) .FirstOrDefaultAsync(); if (sa == null) { sa = new StudentAssessment { AssessmentID = assessments[i].AssessmentId, StudentID = studentId, Comment = "" }; _context.StudentAssessment.Add(sa); await _context.SaveChangesAsync(); } i++; StudentAssessment = await _context.StudentAssessment .Include(s => s.Student) .Where(s => s.StudentID == studentId) .Where(s => s.Assessment.ClassID == classId) .ToListAsync(); } }
public async Task <IActionResult> OnGetAsync(int?StudentId, int?AssesmentId) { if (StudentId == null || AssesmentId == null) { return(NotFound()); } StudentAssessment = await _context.StudentAssessment .Include(s => s.Assessment) .Include(s => s.Student) .Where(s => s.AssessmentID == AssesmentId) .Where(s => s.StudentID == StudentId) .FirstOrDefaultAsync(); if (StudentAssessment == null) { return(NotFound()); } ViewData["AssessmentID"] = new SelectList(_context.Assessment, "AssessmentId", "Title"); ViewData["StudentID"] = new SelectList(_context.Student, "StudentID", "FirstName"); return(Page()); }
private AssessmentResultRowModel CreateAssessmentResultRow(StudentAssessment studentAssessment, DateTime startDate, DateTime endDate) { var results = new List <string>(); while (startDate <= endDate) { if (studentAssessment.AdministrationDate == startDate) { var result = GetPerformanceLevel(studentAssessment); results.Add(result); } else { results.Add(string.Empty); } startDate = startDate.AddDays(1); } var assessment = studentAssessment.Assessment; var commonCoreStandard = assessment.AssessmentLearningStandards.First().LearningStandard.Description; var sectionCode = assessment.AssessmentSections.First().Section.UniqueSectionCode; var grade = studentAssessment.StudentAssessmentScoreResults.First().Result; var assessmentTitle = assessment.AssessmentTitle; var date = studentAssessment.AdministrationDate; var assessmentCategoryType = _genericRepository.Get <AssessmentCategoryType>(act => act.AssessmentCategoryTypeId == assessment.AssessmentCategoryTypeId); return(new AssessmentResultRowModel { CommonCoreStandard = commonCoreStandard, SectionCode = sectionCode, Results = results, Grade = grade, AssessmentTitle = assessmentTitle, Date = date, AssessmentTypeDescription = assessmentCategoryType.ShortDescription }); }
/// <summary> /// Creates or updates resources based on the natural key values of the supplied resource. The POST operation can be used to create or update resources. In database terms, this is often referred to as an "upsert" operation (insert + update). Clients should NOT include the resource "id" in the JSON body because it will result in an error (you must use a PUT operation to update a resource by "id"). The web service will identify whether the resource already exists based on the natural key values provided, and update or create the resource appropriately. /// </summary> /// <param name="body">The JSON representation of the "studentAssessment" resource to be created or updated.</param> /// <returns>A RestSharp <see cref="IRestResponse"/> instance containing the API response details.</returns> public IRestResponse PostStudentAssessments(StudentAssessment body) { var request = new RestRequest("/studentAssessments", Method.POST); request.RequestFormat = DataFormat.Json; // verify required params are set if (body == null) { throw new ArgumentException("API method call is missing required parameters"); } request.AddBody(body); var response = client.Execute(request); var location = response.Headers.FirstOrDefault(x => x.Name == "Location"); if (location != null && !string.IsNullOrWhiteSpace(location.Value.ToString())) { body.id = location.Value.ToString().Split('/').Last(); } return(response); }
public List<StudentAssessment> GetStudentAssessment(string IDNum, string SY) { List<StudentAssessment> salist = new List<StudentAssessment>(); List<StudentAssessmentBDO> sab = new List<StudentAssessmentBDO>(); sab=sal.GetStudentAssessment(IDNum, SY); foreach (StudentAssessmentBDO s in sab) { StudentAssessment sa = new StudentAssessment(); TranslatetAssessBDOToAssess(s, sa); salist.Add(sa); } return salist; }
public void Delete([FromBody] StudentAssessment studentAssessment) { _service.Delete(studentAssessment); }
public void Put([FromBody] StudentAssessment studentAssessment) { _service.Update(studentAssessment); }
public void TranslatetAssessBDOToAssess(StudentAssessmentBDO ab, StudentAssessment a) { a.StudentAssessmentId = ab.StudentAssessmentId; a.StudentSY = ab.StudentSY; a.FeeID = (int)ab.FeeID; a.Amount = (double)ab.Fee.Amount; a.ScholarshipDiscountId = (int)ab.DiscountId; if(ab.ScholarshipDiscount.Discount.HasValue) a.Discount = (float)ab.ScholarshipDiscount.Discount; }
public bool CreateStudentAssessment(StudentAssessment studAss) { throw new NotImplementedException(); }