public DistributorDTO GetLogin(string username, string password) { DistributorDTO lgdistributor = new DistributorDTO(); bool success = objLoginDistributor.Get_CheckUserExist(username, password); var UserID = objLoginDistributor.GetUserID_By_UserName(username); var StateID = objLoginDistributor.GetStateIdByUserID(UserID); var CityID = objLoginDistributor.GetCityIdByUserID(UserID); var Designation = objLoginDistributor.GetDesignationByUserID(Convert.ToString(UserID)); if (success == true) { lgdistributor.DistributorId = Convert.ToInt32(UserID); lgdistributor.Designation = Designation; lgdistributor.UserName = username; lgdistributor.StateId = Convert.ToInt32(StateID); lgdistributor.CityId = CityID; } else { } return(lgdistributor); }
public bool Get_CheckUserExist(string UserName, string Password) { return(objILoginDistributor.Get_CheckUserExist(UserName, Password)); }