/// <summary> /// Actualizar Sancion /// Autor: Jair Guerrero /// Fecha: 2020-12-05 /// </summary> public void Update(StatesAM entity) { try { var sancion = mapper.Map <States>(entity); IRepository <States> repo = new StatesRepo(context); repo.Update(sancion); } catch (Exception ex) { throw new Exception(ex.Message, ex.InnerException); } }