public void Edit(FlickrSets flickrSet)
        {
            var originalFlickrSet = (from a in _dataModel.FlickrSets where a.SetId == flickrSet.SetId select a).First();

            _dataModel.ApplyCurrentValues(originalFlickrSet.EntityKey.EntitySetName, flickrSet);
            _dataModel.SaveChanges();
        }
        public ActionResult Edit(FormCollection form)
        {
            var flickrSet = new FlickrSets
                                {
                SetId = Convert.ToInt64(form["SetId"]),
                SetName = form["SetName"],
                Description = form["Description"]
            };

            _flickrImageService.Edit(flickrSet);
            return RedirectToAction("Index");
        }
 public ActionResult Create(FormCollection form)
 {
     try
     {
         var flickrSet = new FlickrSets
                             {
             SetId = Convert.ToInt64(form["SetId"]),
             SetName = form["SetName"],
             Description = form["Description"]
         };
         _flickrImageService.CreateFlickrSet(flickrSet);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
 public void CreateFlickrSet(FlickrSets f)
 {
     _dataModel.AddToFlickrSets(f);
     _dataModel.SaveChanges();
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the FlickrSets EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFlickrSets(FlickrSets flickrSets)
 {
     base.AddObject("FlickrSets", flickrSets);
 }
 /// <summary>
 /// Create a new FlickrSets object.
 /// </summary>
 /// <param name="setId">Initial value of the SetId property.</param>
 public static FlickrSets CreateFlickrSets(global::System.Int64 setId)
 {
     FlickrSets flickrSets = new FlickrSets();
     flickrSets.SetId = setId;
     return flickrSets;
 }