public CameraResultModel Create(CameraResultModel entity) { entity.CreationDate = DateTime.Now; entity.LastUpdateDate = DateTime.Now; return(_nonQueryDataService.Create(entity)); }
public MachineModel Create(MachineModel entity) { entity.CreationDate = DateTime.Now; entity.LastUpdateDate = DateTime.Now; return(_nonQueryDataService.Create(entity)); }
public TraceabilityLogModel Create(TraceabilityLogModel entity) { entity.CreationDate = DateTime.Now; entity.LastUpdateDate = DateTime.Now; return(_nonQueryDataService.Create(entity)); }
public async Task <Registration> Create(Registration entity) { entity.IsActive = true; entity.CreatedBy = 1; entity.CreatedAt = DateTime.Now; return(await _nonQueryDataService.Create(entity)); }
public PartAssemblyModel Create(PartAssemblyModel entity) { entity.CreationDate = DateTime.Now; entity.LastUpdateDate = DateTime.Now; return(_nonQueryDataService.Create(entity)); }
public TighteningRepairModel Create(TighteningRepairModel entity) { entity.CreationDate = DateTime.Now; entity.LastUpdateDate = DateTime.Now; return(_nonQueryDataService.Create(entity)); }
public Task <Student> Create(Student entity) { entity.IsActive = true; entity.CreatedAt = DateTime.Now; entity.CreatedBy = 1; entity.FaceAdded = false; entity.UpdatedAt = DateTime.Now; return(_nonQueryDataService.Create(entity)); }
public async Task <User> Create(User entity) { string hashedPassword = _passwordHasher.HashPassword(entity.Password); entity.Password = hashedPassword; entity.IsActive = true; entity.CreatedAt = DateTime.Now; entity.UpdatedAt = DateTime.Now; return(await _nonQueryDataService.Create(entity)); }
public async Task <Car> Create(Car entity) { var results = new List <ValidationResult>(); var context = new ValidationContext(entity); StringBuilder errorResult = new StringBuilder(); if (!Validator.TryValidateObject(entity, context, results, true)) { foreach (var error in results) { errorResult.Append(error.ErrorMessage + '\n'); } throw new Exception(errorResult.ToString()); } return(await _nonQueryDataService.Create(entity)); }
public async Task <Section> AddLecturer(Lecturer lecturer, Course course) { AttendProcess attenProcess = new AttendProcess { LastUpdated = DateTime.Now, CreatedAt = DateTime.Now, CreatedBy = 1, IsActive = true, }; Section section = new Section { CourseId = course.Id, LecturerId = lecturer.Id, CreatedAt = DateTime.Now, CreatedBy = 1, IsActive = true, AttendProcess = attenProcess, }; return(await _nonQuerySectionData.Create(section)); }
public async Task <User> Create(User entity) { return(await _nonQueryDataService.Create(entity)); }
public async Task <Address> Create(Address entity) { return(await _nonQueryDataService.Create(entity)); }
public Venue Insert(Venue entity) { return(_nonQueryDataService .Create(entity).Result); }
public async Task <Course> Create(Course entity) { return(await _nonQueryDataService.Create(entity)); }
public async Task <Account> Create(Account entity) { return(await _nonQueryDataService.Create(entity)); }
public async Task <T> Create(T entity) { return(await nonQueryDataService.Create(entity)); }
public async Task <Booking> Create(Booking entity) { return(await nonQueryDataService.Create(entity)); }
public async Task <Issue> Create(Issue entity) { return(await _nonQueryDataService.Create(entity)); }
public Task <Attendance> Create(Attendance entity) { return(_nonQueryDataService.Create(entity)); }
public async Task <Color> Create(Color entity) => await _nonQueryDataService.Create(entity);
public async Task <Specialization> Create(Specialization entity) { return(await _nonQueryDataService.Create(entity)); }
public async Task <Category> Create(Category entity) { return(await nonQueryDataService.Create(entity)); }
public async Task <Consultation> Create(Consultation entity) { return(await _nonQueryDataService.Create(entity)); }
public async Task <Part> Create(Part entity) { return(await _nonQueryDataService.Create(entity)); }
public async Task <User> Create(User entity) => await _nonQueryDataService.Create(entity);
public async Task <Doctor> Create(Doctor entity) { return(await _nonQueryDataService.Create(entity)); }
public async Task <Reservation> Create(Reservation entity) { return(await _nonQueryDataService.Create(entity)); }
public Task <Lecturer> Create(Lecturer entity) { return(_nonQueryDataService.Create(entity)); }
public async Task <Schedule> Create(Schedule entity) { return(await _scheduleNonQueryDataService.Create(entity)); }