Exemplo n.º 1
0
        public ActionResult AddHouseLoanDetails(Int64 Id = 0, Decimal principalPaid = 0, Decimal interestPaid = 0, string nameLender = null, string lenderPAN = null, string LoanFinancialYear = null, Int64 Employee_ID = 0)
        {
            Int64 result = 0;
            var   EmpID  = Session["UserID"].ToString();

            if (Employee_ID == 0)
            {
                Employee_ID = Convert.ToInt64(EmpID);
            }
            MTSHRDataLayer.ITDeclaration data = new MTSHRDataLayer.ITDeclaration();
            try
            {
                result = data.AddHouseLoanDetails(Id, Employee_ID, Convert.ToInt64(LoanFinancialYear), principalPaid, interestPaid, nameLender, lenderPAN);
                if (result > 0)
                {
                    result = 1;
                }
            }
            catch (Exception e)
            {
                BaseExceptionHandler.HandleException(ref e);
            }
            return(Json(new { result = result }));
        }