public LoginViewModelResponse Validateuser(string userName, string password)
        {
            var UserInfo = (from u in _user.GetUsers()
                            join ur in _userRole.GetUserRoles() on u.Id equals ur.UserId
                            join r in _role.GetRoles() on ur.RoleId equals r.Id into roles
                            where u.EmailId == userName && u.Password == password
                            select new LoginViewModelResponse()
            {
                Password = u.Password,
                UserName = u.EmailId,
                RoleId = roles.Select(y => y.Id.ToString()),
                RoleName = roles.Select(y => y.RoleName)
            }).FirstOrDefault();

            return(UserInfo);
        }