Ejemplo n.º 1
0
        public async Task DeleteCustomerUnit(IdInput input)
        {
            DeleteAddressUnitInput dto = new DeleteAddressUnitInput
            {
                TypeofObjectId = TypeofObject.CustomerUnit,
                ObjectId       = input.Id
            };
            await _addressUnitAppService.DeleteAddressUnitByEntity(dto);

            await _customerUnitManager.DeleteAsync(input.Id);
        }
Ejemplo n.º 2
0
        public async Task DeleteEmployeeUnit(IdInput input)
        {
            await _employeeUnitManager.DeleteAsync(input.Id);

            DeleteAddressUnitInput dto = new DeleteAddressUnitInput
            {
                TypeofObjectId = TypeofObject.EmployeeUnit,
                ObjectId       = input.Id
            };
            await _addressAppService.DeleteAddressUnitByEntity(dto);
        }
Ejemplo n.º 3
0
        public async Task DeleteVendorUnit(IdInput input)
        {
            DeleteAddressUnitInput dto = new DeleteAddressUnitInput
            {
                TypeofObjectId = TypeofObject.VendorUnit,
                ObjectId       = input.Id
            };
            await _addressAppService.DeleteAddressUnitByEntity(dto);

            await _vendorAliasUnitManager.DeleteAsync(Convert.ToInt32(dto.ObjectId));

            await _vendorUnitManager.DeleteAsync(input.Id);
        }