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