Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Data.Entities;
- using Data.Repository;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Data.Services
- {
- public class AuthenticationService
- {
- public User LoggedUser { get; set; }
- public void AuthenticateUser(string username, string password)
- {
- UserRepository userRepository = new UserRepository(
- new VmDbContext());
- this.LoggedUser = userRepository.GetOne(user =>
- user.Username == username &&
- user.Password == password);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment