public ActionResult Edit(int id, FormCollection collection)
 {
     try
     {
         dc.Group_Update(id, collection["Name"].ToString());
         return(RedirectToAction("Index"));
     }
     catch
     {
         ViewBag.Message = "خطا در به روز رسانی گروه";
         var group = dc.Groups.Where(x => x.Id == id).FirstOrDefault();
         if (Request.IsAjaxRequest())
         {
             return(PartialView(group));
         }
         return(View(group));
     }
 }