@using Front.Pages @using Shared.DTOs @inject HttpClient _hc
ارتباط با ما

ما مشتاقانه منتظر
نظرات شما هستیم

نام شما
موبایل
عنوان
پیام شما ...
@code { string type = "NewTicketNoAuthentication"; private EditContext? editContext; [SupplyParameterFromForm] private CTicketNoAuthenticationDto? model { get; set; } = new CTicketNoAuthenticationDto(); private ValidationMessageStore? messageStore; protected override void OnInitialized() { // modelTaxTools ??= new(); // editContext = new(modelTaxTools); // editContext.OnValidationRequested += HandleValidationRequested; // messageStore = new(editContext); editContext = new EditContext(model); messageStore = new(editContext); } } @functions{ private async Task newTicket(){ // var request = await _hc.PostAsJsonAsync("Ticket/NewTicketNoAuthentication", model); // if (request.IsSuccessStatusCode) // { // messageStore?.Clear(); // var res = await request.Content.ReadFromJsonAsync(); Verification pa = new Verification(); pa.model = new VerificationCodeDto { prm =" Ticket.ID.ToString()", val = "item.Mobile", Type = "NewTicketNoAuthentication" }; await Task.Run(()=>pa); // } // else // { // var error = await request.Content.ReadFromJsonAsync>(); // messageStore?.Add(() => model.Mobile, error); // } } }