Retail_manager/RMDataManagerLibrary/DataAcccess/UserData.cs
s459315 aa98988db1 Added RMDataManageLibrary project
Added a way to communicate with database
2022-07-14 19:41:50 +02:00

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;
}
}
}