Example #1
0
        public static void AddProperty(string name, int address, int detail, int photo)
        {
            var property = new Property
            {
                Name      = name,
                AddressId = address,
                DetailsId = detail,
                Status    = PropertyState.Waiting,
                PhotosId  = photo
            };

            using (var context = new RepositoryProperty())
            {
                context.CreateProperty(property);
            }
        }
 set => SetValue(RepositoryProperty, value);