public ActionResult SaveTax(string taxName,
                                    string startDate, string endDate)
        {
            string message = "";

            try
            {
                bool result = false;
                if (SessionHelper.Tax != null)
                {
                    if (SessionHelper.Tax.TaxDetails.Count == 0)
                    {
                        message = "No Tax detail information available to save!";
                    }
                    else
                    {
                        if (taxName == "")
                        {
                            message = "Tax Name is required!";
                        }
                        else
                        {
                            if (endDate == "")
                            {
                                SessionHelper.Tax.EndDate = null;
                            }
                            else
                            {
                                SessionHelper.Tax.EndDate = Convert.ToDateTime(endDate);
                            }

                            if (endDate == "")
                            {
                                SessionHelper.Tax.StartDate = null;
                            }
                            else
                            {
                                SessionHelper.Tax.StartDate = Convert.ToDateTime(startDate);
                            }

                            SessionHelper.Tax.TaxName = taxName;

                            TaxHelper.Update(SessionHelper.Tax);
                            SessionHelper.Tax = null;
                            result            = true;
                            message           = "Saved successfully";
                        }
                    }
                }
                else
                {
                    message = "No information available to save!";
                }

                return(Json(new { success = result, message = message }));
            }
            catch (Exception ex)
            {
                return(Json(new { success = false, message = ex.Message }));
            }
        }