Пример #1
0
 public static string GetEntityForEdition(string id)
 {
     System.Web.Script.Serialization.JavaScriptSerializer js = new System.Web.Script.Serialization.JavaScriptSerializer();
     Business.Campus bo     = new Business.Campus();
     Entities.Campus entity = new Entities.Campus();
     entity.ID = Utils.IsNull(id, 0);
     entity.SetFromDataSource(true);
     bo.PrepareEntityForEdition(entity);
     return(js.Serialize(entity));
 }