public ActionResult Edit(Guid id, FormCollection collection)
 {
     try
     {
         dc.Image_Update(id, collection["Alt"].ToString(), collection["Description"], collection["Url"]);
         return(RedirectToAction("Index"));
     }
     catch
     {
         ViewBag.Message = "Error while updating the image";
         var image = dc.Images.Where(x => x.Id == id).Select(m => new Image
         {
             Id             = m.Id,
             Admin_Username = m.Admin_Username,
             Alt            = m.Alt,
             Description    = m.Description,
             Url            = m.Url
         }).FirstOrDefault(); if (Request.IsAjaxRequest())
         {
             return(PartialView(image));
         }
         return(View(image));
     }
 }