Ejemplo n.º 1
0
 private JsonResult AddRelatedFamilys(int id, SearchModel m, int origin)
 {
     if (id > 0)
     {
         foreach (var p in m.List)
         {
             AddPerson(p, m.List, origin, m.EntryPointId);
             SearchModel.AddRelatedFamily(id, p.PeopleId.Value);
         }
         DbUtil.Db.SubmitChanges();
     }
     return(Json(new { close = true, how = "addselected" }));
 }