Exemple #1
0
        protected virtual async Task Create(CreateOrEditOrganizationLocationDto input)
        {
            var organizationLocation = ObjectMapper.Map <OrganizationLocation>(input);



            await _organizationLocationRepository.InsertAsync(organizationLocation);
        }
Exemple #2
0
 public async Task CreateOrEdit(CreateOrEditOrganizationLocationDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
Exemple #3
0
        protected virtual async Task Update(CreateOrEditOrganizationLocationDto input)
        {
            var organizationLocation = await _organizationLocationRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, organizationLocation);
        }