コード例 #1
0
        public void SaveLocation(LocationViewModel viewModel)
        {
            var location = new Location
            {
                Name        = viewModel.Name,
                Description = viewModel.Description
            };

            context.AddLocation(location);
        }