@inject IRestWrapper RestWrapper @inject IUserUtility UserUtility

افزودن پیش نویس شرح حال جدید

لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد ده

منتظر بمانید

@e.Name

@code { [Parameter] public string ChiefComplaint { get; set; } = string.Empty; [Parameter] public EventCallback ChiefComplaintChanged { get; set; } [Parameter] public SectionSDto SelectedSection { get; set; } = new(); [Parameter] public EventCallback SelectedSectionChanged { get; set; } public List Sections { get; private set; } = new List(); public async Task> SearchSection(string section) { try { var token = await UserUtility.GetBearerTokenAsync(); var user = await UserUtility.GetUserAsync(); Sections = await RestWrapper.SectionRestApi.GetByUniversityAsync(user.UniversityId, token); if (section.IsNullOrEmpty()) return Sections; return Sections.Where(c => c.Name.Contains(section)); } catch (ApiException ex) { var exe = await ex.GetContentAsAsync(); return Sections; } catch (Exception e) { return Sections; } } }