Esempio n. 1
0
        public async Task <IActionResult> GetAddressNoRegister(AccountRequestModel2 request)
        {
            dt = new DataTable();
            dc = new Dictionary <string, string>();
            dt = management.REST_CheckisCustomer(request.IDCard, request.BirthDay, request.NextCard);
            List <InformationAddressNoRegister> address = new List <InformationAddressNoRegister>();

            if (dt.Rows.Count == 0)
            {
                dc.Add("result", "Not Found Customer Data");
                acc.REST_KeepLogRequest("Not Found Customer Data", func.JsonSerialize(request));
                return(NotFound(dc));
            }

            address = management.REST_GetAddressNotRegister(request.IDCard, request.BirthDay, request.NextCard);

            return(Ok(address));
        }