public ParticipantDto CheckLogin(LoginDto objLoginDto)
        {
            ParticipantDto objCheck = new ParticipantDto();

            try
            {
                LoginDal objLoginDal = new LoginDal();
                User     objLogin    = new User();
                objLogin.Email    = Convert.ToString(objLoginDto.Email);
                objLogin.Password = Convert.ToString(objLoginDto.Password);
                User objNew = new User();
                objNew = objLoginDal.CheckLogin(objLogin);


                objCheck.Education = objNew.Education;
                objCheck.Email     = objNew.Email;
                objCheck.FirstName = objNew.FirstName;
                objCheck.LastName  = objNew.LastName;
                objCheck.Mobile    = objNew.Mobile;
                objCheck.UserID    = objNew.UserID;
            }
            catch (FormatException ex)
            {
                throw ex;
            }
            return(objCheck);
        }
 public bool CheckLogin(LoginDto objLoginDto)
 {
     bool status=false;
     LoginDal objLoginDal = new LoginDal();
     Login objLogin = new Login();
     objLogin.UserName = objLoginDto.UserName;
     objLogin.Password = objLoginDto.Password;
     status = objLoginDal.CheckLogin(objLogin);
     return status;
 }