Exemple #1
0
 public IActionResult AddActivity(int id, EmployeeActivity employeeActivity)
 {
     if (ModelState.IsValid)
     {
         employeeService.AddActivity(id, employeeActivity);
         return(Ok());
     }
     return(BadRequest());
 }