public User GetByLogin(string login) { if (DemoUserService.IsDemoUser(login)) { return(DemoUserService.GetDemoUser(login)); } using (var uow = Read()) { var da = new UserDataAccess(uow); var res = da.GetUser(login, null, null); return(res); } }
private User GetDemoUser(string roleName, string prefix) { return(DemoUserService.GetDemoUser(roleName, prefix)); }