public ActionResult Index(TransactionsViewModel transactionsViewModel)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    transactionsViewModel.HighLevelTxnDesc = transactionsViewModel.HighLevelTxnDesc.Trim();
                    if (transactionsViewModel.ReqReference != null)
                    {
                        transactionsViewModel.ReqReference = transactionsViewModel.ReqReference.Trim();
                    }
                    TransactionsViewModel transVM = new TransactionsViewModel();
                    TempData["daId"] = transactionsViewModel.daId;
                    transactionsViewModel.AddTrans(transactionsViewModel);
                    transactionsViewModel.GetScreenAccessRights("Transactions");

                    return(RedirectToAction("Index", "Transactions"));
                }
                TransactionsViewModel transviewmodel = new TransactionsViewModel();
                transviewmodel = transviewmodel.GetTransactions(transactionsViewModel.daId);
                transactionsViewModel.GetScreenAccessRights("Transactions");

                ViewData["transviewmodel1"] = (IEnumerable <TransactionsViewModel>) from u in transviewmodel.lstTransactions
                                              join b in transviewmodel.lstLifeCycle on u.LifeCycleID equals b.LifeCycleID
                                              select new TransactionsViewModel {
                    TransactionSeq = u.TransactionSeq, ReqReference = u.ReqReference, HighLevelTxnID = u.HighLevelTxnID, HighLevelTxnDesc = u.HighLevelTxnDesc, LifeCycleID = b.LifeCycleID, LifeCycleDesc = b.LifeCycleDesc
                };
                //TempData["daId"] = transviewmodel.daId;

                CommonFunctions comfuns = new CommonFunctions();

                var da = comfuns.FindDA(transactionsViewModel.daId);
                transviewmodel.ModuleId = da.ModuleId;
                transviewmodel.daName   = da.DAName;
                TempData["daId"]        = transviewmodel.daId;

                int clientId;
                int projectId;
                int applicationId;
                //int moduleId;

                string projectName;
                string appName;
                string modName;
                //string prodName;


                //transviewmodel.ProductName = prodName;

                comfuns.GetModuleName(transviewmodel.ModuleId, out applicationId, out modName);
                transviewmodel.ApplicationID = applicationId;
                transviewmodel.ModuleName    = modName;

                comfuns.GetApplicationName(applicationId, out projectId, out appName);
                transviewmodel.ProjectID       = projectId;
                transviewmodel.ApplicationName = appName;

                comfuns.GetProjectName(projectId, out clientId, out projectName);
                transviewmodel.ClientID    = clientId;
                transviewmodel.ProjectName = projectName;

                transviewmodel.ClientName = comfuns.GetClientName(clientId);

                return(View(transviewmodel));
            }
            catch (Exception ex)
            {
                errorlogviewmodel = new ErrorLogViewModel();
                errorlogviewmodel.LogError(ex);
                return(View("Error"));
            }
        }
 protected override async void OnAppearing()
 {
     base.OnAppearing();
     await Vm.GetTransactions();
 }