/// <summary> /// Add door to accesslevel /// </summary> /// <param name="accessLvId">ID of access level need add</param> /// <param name="doorId">id of door need add</param> /// <param name="creator">user login id</param> /// <returns>OK or error from DB</returns> public static string AddDoor(string accessLvId, string doorId, string creator) { string result = "OK"; DataTable dt = null; try { ServiceReference1.WSACUSoapClient client = new ServiceReference1.WSACUSoapClient(); DataSet ds = client.AccessLevelDSave("A", accessLvId, doorId, creator, DateTime.Now); dt = ds.Tables[0]; result = dt.Rows[0][0].ToString(); return(result); } catch (Exception ex) { return(string.Format("Access level class - Add door: {0}", ex.ToString())); } }