Retail_manager/RMDataManagerLibrary/DataAcccess/UserData.cs

25 lines
586 B
C#
Raw Normal View History

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