Ejemplo n.º 1
0
        public ActionResult PeriodicValuation(string Command, PeriodicValuation objPeriodicValuation, FormCollection objFormCollection)
        {
            try
            {
                if (ValidateSession())
                {
                    if (Command == "Save")
                    {
                    }
                    return(View());
                }
                else
                {
                    return(RedirectToAction("Login", "Login"));
                }
            }
            catch (Exception ex)
            {
                UserMaster objUserMaster = new UserMaster();
                objUserMaster = (UserMaster)Session["LoggedInUser"];

                LogError(ex.Message, ex.StackTrace, "PeriodicValuationController", "PeriodicValuation Post", objUserMaster.UserID);
                return(RedirectToAction("ErrorPage", "Login"));
            }
        }
Ejemplo n.º 2
0
        public ActionResult PeriodicValuation(string ProductID, string WeightedAveragePrice)
        {
            try
            {
                if (ValidateSession())
                {
                    PeriodicValuation obj = new PeriodicValuation();
                    obj.ValuationDate = DateTime.Now.Date;

                    return(View(obj));
                }
                else
                {
                    return(RedirectToAction("Login", "Login"));
                }
            }
            catch (Exception ex)
            {
                UserMaster objUserMaster = new UserMaster();
                objUserMaster = (UserMaster)Session["LoggedInUser"];

                LogError(ex.Message, ex.StackTrace, "PeriodicValuationController", "PeriodicValuation Get", objUserMaster.UserID);
                return(RedirectToAction("ErrorPage", "Login"));
            }
        }