Ejemplo n.º 1
0
        public async Task <JobLocationUnitDto> CreateJobLocationUnit(CreateJobLocationInput input)
        {
            var jobLocationUnit = new JobLocationUnit(jobid: input.JobId, locationsitedate: input.LocationSiteDate,
                                                      locationid: input.LocationId);
            await _jobLocationUnitManager.CreateAsync(jobLocationUnit);

            await CurrentUnitOfWork.SaveChangesAsync();

            return(jobLocationUnit.MapTo <JobLocationUnitDto>());
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Updating JobLocation
 /// </summary>
 /// <param name="jobLocationUnit"></param>
 /// <returns></returns>
 public virtual async Task UpdateAsync(JobLocationUnit jobLocationUnit)
 {
     await JobLocationUnitRepository.UpdateAsync(jobLocationUnit);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Inserting JobLocation Entity
 /// </summary>
 /// <param name="jobLocationUnit"></param>
 /// <returns></returns>
 public virtual async Task CreateAsync(JobLocationUnit jobLocationUnit)
 {
     await JobLocationUnitRepository.InsertAsync(jobLocationUnit);
 }