protected virtual async Task Create(CreateOrEditSYS_CODEMASTERSDto input)
        {
            var syS_CODEMASTERS = ObjectMapper.Map <SYS_CODEMASTERS>(input);



            await _syS_CODEMASTERSRepository.InsertAsync(syS_CODEMASTERS);
        }
 public async Task CreateOrEdit(CreateOrEditSYS_CODEMASTERSDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
        protected virtual async Task Update(CreateOrEditSYS_CODEMASTERSDto input)
        {
            var syS_CODEMASTERS = await _syS_CODEMASTERSRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, syS_CODEMASTERS);
        }