Пример #1
0
        public IActionResult AddEmployes(Employes emp)
        {
            AddRepo em = new AddRepo();

            if (em.AddEmp(emp))
            {
                ViewBag.ErrMsg = "Employee Details are successfully Added";
            }
            else
            {
                ViewBag.ErrMsg = "Employee Details are Not successfully Added";
            }
            return(View(emp));
        }
        public int AddEmployes([FromBody] Employes emp)
        {
            AddRepo sb = new AddRepo();

            return(sb.AddEmp(emp));
        }