Exemplo n.º 1
0
        public bool EditPlace(Place newPlace)
        {
            var place = new AdminServiceReference.Place()
            {
                Id          = newPlace.Id,
                Name        = newPlace.Name,
                Description = newPlace.Description,
                Information = newPlace.Information,
                Status      = newPlace.Status
            };

            return(adminServiceClient.UpdatePlace(place));
        }
Exemplo n.º 2
0
        public bool AddPlace(Place newPlace)
        {
            var place = new AdminServiceReference.Place()
            {
                Id = newPlace.Id,
                CategoryPlaceId = Convert.ToInt32(newPlace.CategoryId),
                Name            = newPlace.Name,
                Description     = newPlace.Description,
                Information     = newPlace.Information,
                Status          = newPlace.Status
            };

            return(adminServiceClient.AddPlace(place));
        }