public string GetFloorListBy(long buildId, string tip) { var list = BuildFloorBll.GetFloorList(buildId); if (list == null) { list = new List <BuildFloor>(); } list.Insert(0, new BuildFloor() { Id = 0, Name = tip }); return(JsonConvert.SerializeObject(list)); }
public string GetFloorList(long buildId) { var list = BuildFloorBll.GetFloorList(buildId); return(JsonConvert.SerializeObject(list)); }