Exemplo n.º 1
0
        public string InsertUserDetails(EntLogin objentlogin)
        {
            string strMessage = "Data Saved";
            DlLogin objdllogin = new DlLogin();
            try
            {
                return objdllogin.InsertUserInformation(objentlogin);//pass entity object

            }

            catch (Exception ex)
            {

              // MessageBox.Show(ex.Message.ToString());

            }

            finally
            {

                objdllogin = null;

            }
            return strMessage;
        }
Exemplo n.º 2
0
 public SqlDataReader checklogin(string username, string password, string usertType)
 {
     DlLogin oblldlogin = new DlLogin();
     try
     {
         SqlDataReader dr = oblldlogin.checklogin(username, password, usertType);
         return dr;
     }
     catch
     {
         throw;
     }
     finally
     {
     }
 }