Exemple #1
0
 public Boolean update(clsMarca mar)
 {
     try
     {
         return(Mmar.Update(mar));
     }
     catch (Exception ex)
     {
         DevComponents.DotNetBar.MessageBoxEx.Show("Se encontró el siguiente problema: " + ex.Message, "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return(false);
     }
 }
Exemple #2
0
        public static void Update(Marca entity)
        {
            if (entity == null)
            {
                throw new ArgumentNullException();
            }
            if (Marca.Exists(entity))
            {
                throw new NomeDaMarcaRepetidaException();
            }

            //IMarca service = Resolver.GetImplementationOf<IMarca>();
            IMarca service = LocalServiceActivator.CreateInstance <IMarca>();

            service.Update(entity);
        }
Exemple #3
0
 public async Task Update(Marca obj)
 {
     await _IMarca.Update(obj);
 }