Ejemplo n.º 1
0
        public async Task <IActionResult> Edit(int id, [FromBody] AnalysisEditViewModel model)
        {
            if (id <= 0)
            {
                return(new BadRequestObjectResult(new Response("Invalid analysis id.")));
            }

            await _analysisService.EditNotes(id, model.Notes);

            return(new OkObjectResult(new Response("Notes edited.")));
        }