Example #1
0
        /// <summary>
        /// Actualizar Sancion
        /// Autor: Jair Guerrero
        /// Fecha: 2020-12-05
        /// </summary>
        public void Update(DocumentTypeAM entity)
        {
            try
            {
                var sancion = mapper.Map <DocumentType>(entity);

                IRepository <DocumentType> repo = new DocumentTypeRepo(context);
                repo.Update(sancion);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex.InnerException);
            }
        }