Пример #1
0
        public async Task <IActionResult> CheckisCustomer(CustomerWithoutBind request)
        {
            ResultModel result = new ResultModel();

            dt = new DataTable();
            dt = management.REST_CheckisCustomer(request.IDCard, request.BirthDay, request.NextCard);

            if (dt.Rows.Count > 0)
            {
                result.result = "found";
            }
            else
            {
                result.result = "notfound";
                acc.REST_KeepLogRequest("Not Found Contract", func.JsonSerialize(request));
                return(NotFound(result));
            }

            return(Ok(result));
        }