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


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


            await _SysStatusRepository.InsertAsync(SysStatus);
        }
        protected virtual async Task Update(CreateOrEditSysStatusDto input)
        {
            var SysStatus = await _SysStatusRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, SysStatus);
        }