public async Task <bool> UpdateLeccionAsync(LeccionToUpdateVM leccionVM) { var leccionEntity = mapper.Map <LeccionEntity>(leccionVM); var result = await leccionRepository.UpdateLeccionAsync(leccionEntity); return(result); }
public async Task <IActionResult> UpdateLeccionAsync(int idEtapa, int idCurso, int id, [FromBody] LeccionToUpdateVM leccionToUpdateVM) { leccionToUpdateVM.IdCurso = idCurso; leccionToUpdateVM.Id = id; var result = await leccionService.UpdateLeccionAsync(leccionToUpdateVM); return(Ok(result)); }