public async Task MarkAttendance(UpdateCourseDto input) { var conductedDays = (from coursetable in _courseRepository.GetAll() where coursetable.Id == input.Id select coursetable.ConductedDays).ToList(); conductedDays[0]++; input.ConductedDays = conductedDays[0]; var @course = input.MapTo <Course>(); await _courseRepository.UpdateAsync(@course); }
public async Task Update(UpdateCourseDto input) { var @course = input.MapTo <Course>(); await _courseRepository.UpdateAsync(@course); }