public ActionResult Save(int id)
        {
            tblChallanDTO tblChallanDTO = new tblChallanDTO();

            if (id == 0)
            {
                tblChallanDTO           = new tblChallanDTO();
                tblChallanDTO.ChallanNo = (ChallanBusinessLogic.GetChallanNo() + 1);
            }
            else
            {
                tblChallanDTO = ChallanBusinessLogic.Get(id);
            }
            return(View(tblChallanDTO));
        }
 private void GenerateCode()
 {
     txtLorryChallenNo.Text = Convert.ToString(ChallanBusinessLogic.GetChallanNo() + 1);
 }