Ejemplo n.º 1
0
        public int addemployee([FromForm] Employees employee)
        {
            bool inserted = _employeeBo.AddEmployee(employee);

            if (inserted)
            {
                return(employee.Id);
            }
            return(-1);
        }