public override bool Equals(object obj)
        {
            var model = obj as AddRestaurantResponseModel;

            if (model == null)
            {
                return(false);
            }
            else
            {
                return(RestaurantId.Equals(model.RestaurantId) &&
                       WasSucessfull.Equals(model.WasSucessfull));
            }
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            var model = obj as ViewRestaurantResponseModel;

            if (model == null)
            {
                return(false);
            }
            else
            {
                return(RestaurantId.Equals(model.RestaurantId) &&
                       WasSucessfull.Equals(model.WasSucessfull) &&
                       Name.Equals(model.Name) &&
                       CuisineId.Equals(model.CuisineId) &&
                       Reviews.SequenceEqual(model.Reviews));
            }
        }
 public override int GetHashCode() => RestaurantId.GetHashCode() + WasSucessfull.GetHashCode();