コード例 #1
0
        protected virtual async Task Create(CreateOrEditUserTimeSheetApproveDto input)
        {
            var userTimeSheetApprove = ObjectMapper.Map <UserTimeSheetApprove>(input);



            await _userTimeSheetApproveRepository.InsertAsync(userTimeSheetApprove);
        }
コード例 #2
0
 public async Task CreateOrEdit(CreateOrEditUserTimeSheetApproveDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
コード例 #3
0
        protected virtual async Task Update(CreateOrEditUserTimeSheetApproveDto input)
        {
            var userTimeSheetApprove = await _userTimeSheetApproveRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, userTimeSheetApprove);
        }