public GetRestaurantsResponse(RestaurantProvideResultEnum result) { Result = result; if (result == RestaurantProvideResultEnum.Success) { throw new InvalidOperationException("Use constructor with object while success"); } }
public GetRestaurantResponse(RestaurantProvideResultEnum result) { if (result == RestaurantProvideResultEnum.Success) { throw new InvalidOperationException("Use constructor with Restaurant Object"); } Result = result; }
public GetRestaurantsResponse(RestaurantProvideResultEnum result) { Result = result; }