Ejemplo n.º 1
0
        public static AD CreateUser(AD User)
        {
            AD inserted = ADDB.CreateUser(User);

            PaymentDB.CreatePayment(inserted.UserId);
            SAPHRDB.CreateSAPHR(inserted.UserId, inserted.Username);
            return(inserted);
        }
Ejemplo n.º 2
0
        public ActionResult Payment(PaymentViewModel payvm)
        {
            payvm.Status = true;
            payvm.HireId = Convert.ToInt32(Session["hireid"].ToString());

            int i = pdb.CreatePayment(payvm);

            ViewBag.Message = "Payment Done";
            return(View());
        }