public string childCreate(string name, string parent) { if (name == null || name.Length <= 0) { return("nameNull"); } //if (creator == null || creator.Length <= 0) return "creatorNull"; if (parent == null || parent.Length <= 0) { return("parentNull"); } string response = "controllerError"; Guid childGuid = Guid.NewGuid(); try { IchildClient create = new IchildClient(); response = create.createString(parent, name, Guid.NewGuid().ToString()); try { response = new Guid(response).ToString(); } catch (Exception ex) { return(ex.ToString()); } } catch (Exception ex) { return("ErrorUI : " + ex.ToString());; } return(response); }
public string childCreate(string name, string creator, string parent) { if (name == null || name.Length <= 0) { return("nameNull"); } if (creator == null || creator.Length <= 0) { return("creatorNull"); } if (parent == null || parent.Length <= 0) { return("parentNull"); } string response = ""; Guid childGuid = Guid.NewGuid(); try { IchildClient create = new IchildClient(); response = create.createString(parent, name, creator); try { childGuid = new Guid(response); } catch { return(response); } } catch { return("ErrorMachine"); } return(response); }