Exemplo n.º 1
0
 public ActivitiesDto SaveActivity([FromBody] ActivitiesDto model)
 {
     return(_activitiesService.CreateActivity(model));
 }
Exemplo n.º 2
0
        public async Task <ActionResult> CreateActivity(Activity activity)
        {
            var result = await _activitiesService.CreateActivity(activity);

            return(Ok(activity.Category));
        }
        public async Task <IActionResult> CreateActivity([FromRoute] int scenarioId, [FromBody] LaBM model)
        {
            var result = await activitiesService.CreateActivity(scenarioId, model);

            return(Ok(new { activityId = result }));
        }