public JsonResult Edit(AlumniSpeak model, List<int> AcSeleUserIds)
 {
     if ((AcSeleUserIds == null || !AcSeleUserIds.Any()) && model.AlumniId == 0)
     {
         ModelState.AddModelError("", "Select Alumni");
     }
     if (ModelState.IsValid)
     {
         _srv.AddOrUpdate(model, AcSeleUserIds);
     }
     return GetErrorMsgJSON();
 }
 public PartialViewResult Edit(int? id)
 {
     AlumniSpeak model;
     if (id == null)
     {
         model = new AlumniSpeak();
     }
     else
     {
         model = _db.AlumnisSpeak.Find(id);
     }
     return PartialView(model);
 }
 public void AddOrUpdate(AlumniSpeak model, List<int> userIds)
 {
     var alumniId = model.AlumniId == 0 ? userIds[0] : model.AlumniId;
     UpdateAlumniInfo(model, alumniId);
     if (model.EntityKey == 0)
     {
         _db.AlumnisSpeak.Add(model);
     }
     else
     {
         _db.Entry(model).State = System.Data.EntityState.Modified;
     }
     _db.SaveChanges();
 }