public AdminServiceModel Login(string username, string password) { var hashedPassword = this.GetSha256Hash(password); var admin = this.adminService.FindByUsernameAndPassword(username, hashedPassword); this.Admin = admin; return(this.Admin); }
public void Logout() => this.Admin = null;