public bool CreateUserRequestCurrentUser(tbl_User U, int WorkShopId)
        {
            UserDb UD = new UserDb();

            UD.CreateUserRequestCurrentUser(U, WorkShopId);
            return(true);
        }
        public tbl_User GetTrainerById(int UserId)
        {
            UserDb   UD = new UserDb();
            tbl_User Wp = UD.GetTrainerById(UserId);

            return(Wp);
        }
        public bool UpdateTrainerById(tbl_User U, int UserId)
        {
            UserDb UD = new UserDb();

            UD.UpdateTrainerById(U, UserId);
            return(true);
        }
        public tbl_User GetProfileById(int UserId)
        {
            UserDb   UD = new UserDb();
            tbl_User Wp = UD.GetProfileById(UserId);

            return(Wp);
        }
Example #5
0
        public void InsertQuickUrl(QuickURLSubmitModel myQuickUrl)
        {
            using (TransactionScope Trans = new TransactionScope())
            {
                try
                {
                    tbl_User user = myQuickUrl.MyUser;
                    user.Password = user.ConfirmPassword = "******";
                    user.Role     = "U";
                    userBs.Insert(user);

                    tbl_Url myUrl = myQuickUrl.MyUrl;
                    myUrl.UserId     = user.UserId;
                    myUrl.UrlDesc    = myUrl.UrlTitle;
                    myUrl.IsApproved = "P";
                    urlBs.Insert(myUrl);

                    Trans.Complete();
                }
                catch (Exception e)
                {
                    throw e;
                }
            }
        }
Example #6
0
        public void InsertQuickURL(QuickSubmitURLModel myQuckURL)
        {
            using (TransactionScope Trans = new TransactionScope())
            {
                try
                {
                    tbl_User u = myQuckURL.MyUser;
                    u.Password = u.ConfirmPassword = "******";
                    u.Role     = "U";
                    userBs.Insert(u);

                    tbl_Url myUrl = myQuckURL.MyUrl;
                    myUrl.UserId     = u.UserId;
                    myUrl.UrlDesc    = myUrl.UrlTitle;
                    myUrl.IsApproved = "P";
                    urlBs.Insert(myUrl);

                    Trans.Complete();
                }
                catch (Exception E1)
                {
                    throw new Exception(E1.Message);
                }
            }
        }
        public bool InsertProfile(tbl_User U)
        {
            //WorkShopDate should be greater than Current Date
            UserDb UD = new UserDb();

            UD.InsertProfile(U);
            return(true);
        }
Example #8
0
 partial void Deletetbl_User(tbl_User instance);
Example #9
0
 partial void Updatetbl_User(tbl_User instance);
Example #10
0
 partial void Inserttbl_User(tbl_User instance);
        public bool ValidateUser(tbl_User U)
        {
            UserDb UD = new UserDb();

            return(UD.ValidateUser(U));
        }
Example #12
0
 public void Insert(tbl_User user)
 {
     objDb.Insert(user);
 }
Example #13
0
 public void Insert(tbl_User obj)
 {
     objDb.Insert(obj);
 }
Example #14
0
 public void Update(tbl_User user)
 {
     objDB.Update(user);
 }
        public bool CreateTrainer(tbl_User U)
        {
            UserDb UD = new UserDb();

            return(UD.CreateTrainer(U));
        }
Example #16
0
 public void Insert(tbl_User user)
 {
     db.Insert(user);
 }
Example #17
0
 public void Insert(tbl_User url)
 {
     obj.Insert(url);
     obj.Save();
 }
Example #18
0
 public void Update(tbl_User url)
 {
     obj.Update(url);
     Save();
 }
Example #19
0
 public void Insert(tbl_User User)
 {
     objDb.Insert(User);
 }
Example #20
0
 public void Update(tbl_User obj)
 {
     objDb.Update(obj);
 }
Example #21
0
 public void Update(tbl_User User)
 {
     objDb.Update(User);
 }
Example #22
0
 public void Update(tbl_User url)
 {
     objDb.Update(url);
 }
Example #23
0
 public void Insert(tbl_User url)
 {
     objDb.Insert(url);
 }