public async Task <ActualResult> UpdateAsync(ApartmentAccountingEmployeesDTO item)
        {
            try
            {
                var mapping = _mapper.Map <ApartmentAccountingEmployees>(item);
                _context.Entry(mapping).State = EntityState.Modified;
                await _context.SaveChangesAsync();

                return(new ActualResult());
            }
            catch (Exception exception)
            {
                return(new ActualResult(DescriptionExceptionHelper.GetDescriptionError(exception)));
            }
        }
        public async Task <ActualResult> CreateAsync(ApartmentAccountingEmployeesDTO item)
        {
            try
            {
                var mapping = _mapperService.Mapper.Map <ApartmentAccountingEmployees>(item);
                await _context.ApartmentAccountingEmployees.AddAsync(mapping);

                await _context.SaveChangesAsync();

                return(new ActualResult());
            }
            catch (Exception exception)
            {
                return(new ActualResult(DescriptionExceptionHelper.GetDescriptionError(exception)));
            }
        }
        public async Task <ActualResult <string> > CreateAsync(ApartmentAccountingEmployeesDTO item)
        {
            try
            {
                var mapping = _mapper.Map <ApartmentAccountingEmployees>(item);
                await _context.ApartmentAccountingEmployees.AddAsync(mapping);

                await _context.SaveChangesAsync();

                var hashId = HashHelper.EncryptLong(mapping.Id);
                return(new ActualResult <string> {
                    Result = hashId
                });
            }
            catch (Exception exception)
            {
                return(new ActualResult <string>(DescriptionExceptionHelper.GetDescriptionError(exception)));
            }
        }