Beispiel #1
0
        public ActionResult IndexManTravel()
        {
            try
            {
                if (Request.IsAuthenticated)
                {
                    AuthenticateUser("IndexManTravel");

                    string emailAddress = GetEmailAddress();

                    //if (RollTypeStatus() == false)
                    //    return RedirectToAction(UrlIndex, UrlHome);


                    var opdExp = _opdExpenseService.GetOpdExpensesForMANTravel(emailAddress);

                    return(View(opdExp));
                }
                else
                {
                    return(RedirectToAction(UrlIndex, UrlHome));
                }
            }
            catch (Exception ex)
            {
                logger.Error("MANAPPROVAL : Index()" + ex.Message.ToString());

                return(View(new HttpStatusCodeResult(HttpStatusCode.BadRequest)));
            }
        }
Beispiel #2
0
        public bool ValidEmailAddress(string emailAddress)
        {
            bool result = false;

            List <OpdExpenseVM> list = _opdExpenseService.GetOpdExpensesForMANTravel(emailAddress);

            if (list.Count > 0)
            {
                result = true;
            }
            return(result);
        }