public string Print()
        {
            FinanacialLoanDataMonthly fld = new FinanacialLoanDataMonthly();
            List <FinancialLoan>      lst = fld.GetFinancialLoanData();

            return(new PageOrientations().RenderRazorViewToString(this, "Print", lst));
        }
 public ActionResult FinancialLoanEdit()
 {
     if (!string.IsNullOrEmpty(Session["username"] as string))
     {
         if (Session["roleid"].ToString() == "1" || Session["roleid"].ToString() == "9")
         {
             try
             {
                 FinanacialLoanDataMonthly fld = new FinanacialLoanDataMonthly();
                 List <FinancialLoan>      lst = fld.GetFinancialLoanData();
                 return(View(lst));
             }
             catch (Exception ex)
             {
                 return(View("Error", ex));
             }
         }
         else
         {
             return(View("Accessdenied"));
         }
     }
     else
     {
         return(RedirectToAction("Index", "Login"));
     }
 }