aa98988db1
Added a way to communicate with database
25 lines
586 B
C#
25 lines
586 B
C#
using RMDataManagerLibrary.Internal.DataAccess;
|
|
using RMDataManagerLibrary.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace RMDataManagerLibrary.DataAcccess
|
|
{
|
|
public class UserData
|
|
{
|
|
public List<UserModel> GetUserById(string Id)
|
|
{
|
|
SqlDataAccess sql = new SqlDataAccess();
|
|
|
|
var p = new { Id = Id };
|
|
|
|
var output = sql.LoadData<UserModel, dynamic>("dbo.spUserLookup", p, "RMData");
|
|
|
|
return output;
|
|
}
|
|
}
|
|
}
|