title: C# Blazor This works but I am getting errors
body: <p>Maybe I am doing something wrong or maybe VisualStudio is acting up please advise...</p>
  <p>The Error is:</p>
  <pre><code>&quot;Severity   Code    Description Project File    Line    Suppression State
  Error   CS0115  'TechProfile.OnInitializedAsync()': no suitable method found to override
  </code></pre>
  <p>The program works as intended but I don't want errors popping up if they are true errors. please advise also if anyone knows a way to ViewModel the Blazored.LocalStorage based on my code I would love to know a way to put it in a separate cs file and call it once rather than keep setting it.</p>
  <p>Ok here is my razor component</p>
  <pre><code>@page &quot;/profile/techprofile/techinfo&quot;
  @using TechHelper.Model
  @inherits TechModel
  @inject Blazored.LocalStorage.ILocalStorageService oLocalStore
   
  &lt;h3&gt;Technician Profile&lt;/h3&gt;
  
  
      &lt;table id=&quot;TechProfile&quot; class=&quot;ProfileTable&quot;&gt;
  
          &lt;thead colspan=&quot;2&quot;&gt; Profile Information &lt;/thead&gt;
  
          &lt;tr&gt;
              &lt;td&gt;Full Name: &lt;/td&gt;
              &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;TechName&quot; class=&quot;inputfield&quot; @bind-value=&quot;@TechName&quot; /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Standard ID: &lt;/td&gt;
              &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;StandardID&quot; class=&quot;inputfield&quot; @bind-value=&quot;@TechID&quot; /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Email Address: &lt;/td&gt;
              &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;TechEmail&quot; class=&quot;inputfield&quot; @bind-value=&quot;@TechEmail&quot; /&gt;&lt;/td&gt;
         &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Phone Number: &lt;/td&gt;
              &lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;TechPhoneNumber&quot; class=&quot;inputfield&quot; @bind=&quot;@TechPhoneNumber&quot; /&gt;
  &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td colspan=&quot;2&quot;&gt;&lt;div align=&quot;center&quot;&gt;&lt;input class=&quot;techSubmit&quot; type=&quot;button&quot; 
  @onclick=&quot;SaveProfile&quot; value =&quot;Save Profile Information&quot; /&gt;&lt;/div&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  
  &lt;span&gt;@Message&lt;/span&gt;
  
  
  @code {
   
  string Message = &quot;&quot;;
  
  protected override async Task OnInitializedAsync()
  {
      TechName = await oLocalStore.GetItemAsync&lt;string&gt;(&quot;TechnicianName&quot;);
      TechID = await oLocalStore.GetItemAsync&lt;string&gt;(&quot;TechnicianID&quot;);
      TechPhoneNumber = await oLocalStore.GetItemAsync&lt;string&gt;(&quot;TechnicianPhoneNumber&quot;);
      TechEmail = await oLocalStore.GetItemAsync&lt;string&gt;(&quot;TechnicianEmail&quot;);
  }
  
  public async void SaveProfile()
  {
      Message = &quot;Profile Data Saved&quot;;
      await oLocalStore.SetItemAsync(&quot;TechnicianName&quot;, TechName);
      await oLocalStore.SetItemAsync(&quot;TechnicianID&quot;, TechID);
      await oLocalStore.SetItemAsync(&quot;TechnicianPhoneNumber&quot;, TechPhoneNumber);
      await oLocalStore.SetItemAsync(&quot;TechnicianEmail&quot;, TechEmail);
  }
  }
  </code></pre>
  <p>And this is my TechModel.cs - i added the = &quot;&quot;; because of the error trying to see if it would shut it up.</p>
  <pre><code>public class TechModel
  {
      public string TechName { get; set; } = &quot;&quot;;
      public string TechID { get; set; } = &quot;&quot;;
      public string TechPhoneNumber { get; set; } = &quot;&quot;;
      public string TechEmail { get; set; } = &quot;&quot;;
  }
  </code></pre>