Exemple #1
0
        public ActionResult DesignationList(DesignationMaster designationMaster)
        {
            DesignationService add = new DesignationService();

            add.AddDesignation(designationMaster);
            return(RedirectToAction("AllDesignations"));
        }
Exemple #2
0
        public ActionResult AddDesignation(Designation designation)
        {
            try
            {
                // TODO: Add delete logic here
                DesignationService designationService = new DesignationService();
                designationService.AddDesignation(designation);

                return(RedirectToAction("DesignationPage"));
            }
            catch
            {
                return(View());
            }
        }