public async Task CreateOrEdit(CreateOrEditSupportContractDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
        protected virtual async Task Create(CreateOrEditSupportContractDto input)
        {
            var supportContract = ObjectMapper.Map <SupportContract>(input);


            if (AbpSession.TenantId != null)
            {
                supportContract.TenantId = (int?)AbpSession.TenantId;
            }


            await _supportContractRepository.InsertAsync(supportContract);
        }
        protected virtual async Task Update(CreateOrEditSupportContractDto input)
        {
            var supportContract = await _supportContractRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, supportContract);
        }