コード例 #1
0
        public static void Delete(Marca entity)
        {
            if (entity == null)
            {
                throw new ArgumentNullException();
            }

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

            service.Delete(entity);
        }
コード例 #2
0
 public Boolean delete(Int32 Codmar)
 {
     try
     {
         return(Mmar.Delete(Codmar));
     }
     catch (Exception ex)
     {
         DevComponents.DotNetBar.MessageBoxEx.Show("Se encontró el siguiente problema: " + ex.Message, "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return(false);
     }
 }
コード例 #3
0
 public async Task Delete(Marca obj)
 {
     await _IMarca.Delete(obj);
 }