Exemplo n.º 1
0
 public void Put(int id, [FromBody] Dealership dealership)
 {
     if ((dealership.Name != null || dealership.Name != "") && (dealership.Email != null || dealership.Email != ""))
     {
         _context.PutDealership(id, dealership);
     }
 }
Exemplo n.º 2
0
        public string PutDealership(int id, Dealership dealership)
        {
            if (id != dealership.ID)
            {
                return("Error");
            }

            return(_context.PutDealership(id, dealership));
        }