public LoginDetails GetLogin(string loginId)
{
LoginDetails
objSignInIdDetails = null;
var
dtLogin = _objLoginDAL.GetLogin(loginId);
if
(dtLogin.Rows.Count > 0)
{
objSignInIdDetails =
new
LoginDetails
{
LoginId
= Convert.ToInt32(dtLogin.Rows[0]["LoginId"]),
FirstName
= dtLogin.Rows[0]["FirstName"].ToString(),
LastName
= dtLogin.Rows[0]["LastName"].ToString(),
MobileId
= dtLogin.Rows[0]["MobileId"].ToString(),
EmailId
= dtLogin.Rows[0]["EmailId"].ToString(),
IsDeleted
= Convert.ToBoolean(dtLogin.Rows[0]["IsDeleted"])
};
}
return
objSignInIdDetails;
}
No comments:
Post a Comment