예제 #1
0
        public async Task <bool> UpdateLeccionAsync(LeccionToUpdateVM leccionVM)
        {
            var leccionEntity = mapper.Map <LeccionEntity>(leccionVM);
            var result        = await leccionRepository.UpdateLeccionAsync(leccionEntity);

            return(result);
        }
예제 #2
0
        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));
        }