public IHttpActionResult PostEmployee(TABLE_EMPLOYEE emp) { if (ModelState.IsValid) { context.PROC_EMP(emp.EMPLOYEENAME, emp.EMPLOYEESURNAME, emp.EMPLOYEEAGE, emp.EMPLOYEEMAIL); context.SaveChanges(); } return(Ok()); }
public IHttpActionResult PostEmployee(TABLE_EMPLOYEE emp) { if (ModelState.IsValid) { context.PROC_EMP(emp.EMPLOYEENAME, emp.EMPLOYEESURNAME, emp.EMPLOYEEAGE, emp.EMPLOYEEMAIL); context.SaveChanges(); } return(Ok()); }