title: ASP.NET Core CS0535 Does not implement interface
body: <p>Sorry for noob question because new in ASP.NET Core.
  I have the problem that indicate CS0535
  CS0535
  'UserInfoService' does not implement interface member 'IUserInfoService.UpdateLogoutTime(string)'
  Community.Service
  D:\repo\Community\Community.Service\Users\UserInfoService.cs
  23
  Active</p>
  
  <p>Error CS0535 'UserInfoService' does not implement interface member 'IUserInfoService.UpdateLoginTime(string)' Community.Service D:\repo\Community\Community.Service\Users\UserInfoService.cs 23 Active</p>
  
  <pre><code>public async Task UpdateLoginTimeAsync(string userId)
  {
      var user = _dbIdentity.Users.Where(x =&gt; x.Id == userId).FirstOrDefault();
      user.LoginTime = DateTime.Now;
      _dbIdentity.Users.Update(user);
      await _dbIdentity.SaveChangesAsync();
  }
  
  public async Task UpdateLogOutTimeAsync(string userId)
  {
      var user = _dbIdentity.Users.Where(x =&gt; x.Id == userId).FirstOrDefault();
      user.LogoutTime = DateTime.Now;
      _dbIdentity.Users.Update(user);
      await _dbIdentity.SaveChangesAsync();
  }
  
  </code></pre>
  
  <pre><code>using Community.Data.CommonDataTypes;
  using Community.Data.Entities.Companies.ViewModels;
  using Community.Data.Entities.Users;
  using Community.Data.Entities.Users.ViewModels;
  using System;
  using System.Collections.Generic;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace Community.Service.Users
  {
      public interface IUserInfoService
      {
          CompanyRoleViewModel GetCompanyRole();
  
          Task&lt;IEnumerable&lt;CompanyRoleViewModel&gt;&gt; GetAllCompanyRolesAsync(long companyID);
  
          Task&lt;CompanyRoleViewModel&gt; GetCompanyRoleAsync(string companyRoleId);
  
          Task&lt;ServiceSingleRecordInsertOrUpdateResponse&gt; CreateCompanyRoleAsync(CompanyRoleViewModel model, long companyId);
  
          Task&lt;ServiceSingleRecordInsertOrUpdateResponse&gt; UpdateCompanyRoleAsync(CompanyRoleViewModel model);
  
          Task ApproveUserAccountsOfCompanyAsync(long companyId);
  
          Task&lt;ServiceStatusResponse&gt; DeleteUserAsync(string userId);
  
          Task&lt;int&gt; RetrieveNumberOfUsersAsync();
  
          Task&lt;IEnumerable&lt;UserInfo&gt;&gt; RetrieveAllUsersAsync(bool includingInactive = false);
  
          Task&lt;string&gt; GenerateCsvContentForAllUsersAsync(bool includingInactive = false);
  
          Task&lt;UserInfo&gt; RetrieveUserInfoAsync(string userId);
  
          Task&lt;UserInfo&gt; RetrieveUserInfoWithoutCompanyByPhoneNumberAsync(string phoneNumber);
  
          Task&lt;UserInfo&gt; RetrieveUserInfoByEmailAsync(string userEmail);
  
          Task&lt;ServiceStatusResponse&lt;UserInfo&gt;&gt; RetrieveUserInfoByPhoneNumberAsync(string phoneNumber);
  
          Task&lt;string&gt; RetrieveUserFullNameByEmailAsync(string userEmail);
  
          Task&lt;CompanyProfileManageViewModel&gt; RetrieveUserCompanyInfoByEmailAsync(string userEmail);
  
          Task&lt;long&gt; RetrieveCompanyIdByEmailAsync(string userEmail);
  
          Task&lt;IEnumerable&lt;UserInfo&gt;&gt; RetrieveInfoOfAllUsersInCompanyAsync(long companyId);
  
          Task&lt;List&lt;UserIdEmailViewModel&gt;&gt; RetrieveIdEmailOfAllUsersInCompanyAsync(long companyId);
  
          Task&lt;List&lt;UserIdEmailFullNameViewModel&gt;&gt; RetrieveIdEmailFullNameOfAllUsersAsync(bool includingInactive = false);
  
          Task&lt;string[]&gt; RetrieveEmailsOfAllUsersInCompanyAsync(long companyId);
  
          Task&lt;IEnumerable&lt;UserInfo&gt;&gt; RetrieveInfoOfAllSuperUsersAsync();
  
          Task&lt;bool&gt; SubmitNewUserAccountCreationRequest(NewUserAccountCreationRequestViewModel model, string createdBy);
  
          Task&lt;NewUserAccountCreationRequest&gt; RetrieveNewUserAccountCreationRequestAsync(string userEmail);
  
          Task&lt;ServiceSingleRecordInsertOrUpdateResponse&gt; UpdateUserAsync(CompanyUserManageViewModel model, string actionUser);
  
          Task&lt;ServiceStatusResponse&gt; UpdateUserPhoneNumberAndUserNameAsync(string userId, string phoneNumber);
  
          Task&lt;bool&gt; SetUserAccountCreationRequestAsDoneAsync(string userEmail);
  
          Task&lt;ServiceSingleRecordInsertOrUpdateResponse&gt; AttachUserToAnotherCompany(string currentUserId, long currentCompanyId, long targetCompanyId);
  
          Task&lt;ServiceSingleRecordInsertOrUpdateResponse&gt; DetachUserFromCompanyBackToOriginalCompany(string currentUserId, long currentCompanyId, string currentCompanyName);
  
          Task&lt;DateTime&gt; UpdateLoginTime();
  
          Task&lt;DateTime&gt; UpdateLogoutTime();
      }
  }
  </code></pre>
  
  <p>Thanks for the help.</p>