public ActionResult manage(int? id)
        {
            MemberPayroll model = new MemberPayroll();
            ViewBag.MemberLookUp = new MemberBAL().GetMemberLookUp();
            if (id != 0 && id != null)
            {
                model = new PayrollBAL().GetById(id.Value);

            }

            return View(model);
        }
        public ActionResult Save(MemberPayroll model)
        {
            try
            {
                bool Add_Flag = new PayrollBAL().isNewEntry(model.PaymentId);

                model.Status = "Active";
                if (Add_Flag)
                {
                    model.CreatOn = DateTime.Now;
                    model.ModifidOn = DateTime.Now;
                    new PayrollBAL().Create(model);
                }
                else
                {
                    model.ModifidOn = DateTime.Now;
                    new PayrollBAL().Update(model);
                }
                string message = CommonMsg.Success(EntityNames.Member, Add_Flag == true ? En_CRUD.Insert : En_CRUD.Update);
                TempData["successmsg"] = message;
            }
            catch (Exception ex)
            {
                TempData["errormsg"] = ex.Message;
            }
            return Redirect("Index");
        }