Пример #1
0
        public async Task <IActionResult> DE_PLAY(string Guids, string MODEL)
        {
            switch (MODEL)
            {
            case "3001":
                DA_PAYPERSON dA_ = await _sqlRepository.GetPAYPERSON(Guids);

                _sqlRepository.DeletePAYPERSON(dA_);
                await _sqlRepository.SaveAsync();

                break;

            case "3002":
                DA_PAYLOSS dA_1 = await _sqlRepository.GetPAYLOSS(Guids);

                _sqlRepository.DeletePAYLOSS(dA_1);
                await _sqlRepository.SaveAsync();

                break;

            case "3003":
                DA_PAYLOSS dA_2 = await _sqlRepository.GetPAYLOSS(Guids);

                _sqlRepository.DeletePAYLOSS(dA_2);
                await _sqlRepository.SaveAsync();

                break;

            case "3004":
                DA_PAYLOSS dA_3 = await _sqlRepository.GetPAYLOSS(Guids);

                _sqlRepository.DeletePAYLOSS(dA_3);
                break;

            case "3005":
                DA_PAYMONTH dA_4 = await _sqlRepository.GetPAYMONTH(Guids);

                _sqlRepository.DeletePAYMONTH(dA_4);
                await _sqlRepository.SaveAsync();

                break;

            case "3006":
                DA_PAYMONTH dA_5 = await _sqlRepository.GetPAYMONTH(Guids);

                _sqlRepository.DeletePAYMONTH(dA_5);
                await _sqlRepository.SaveAsync();

                break;

            case "3007":
                DA_PAYMONTH dA_6 = await _sqlRepository.GetPAYMONTH(Guids);

                _sqlRepository.DeletePAYMONTH(dA_6);
                await _sqlRepository.SaveAsync();

                break;

            case "3008":
                DA_PAYMONTH dA_7 = await _sqlRepository.GetPAYMONTH(Guids);

                _sqlRepository.DeletePAYMONTH(dA_7);
                await _sqlRepository.SaveAsync();

                break;

            default:
                break;
            }
            return(Ok());
        }