コード例 #1
0
        public bool DeleteBackboneIdentifier(BackboneIdentifier backboneIdentifier)
        {
            ListDictionary param = new ListDictionary();

            param.Add("@BackboneIdentifierId", backboneIdentifier.BackboneIdentifierId);
            var result = DataAccess.ExecuteSPNonQuery(DataAccess.ConnectionStrings.Ansira, "DeleteBackboneIdentifiers", param);

            return(Convert.ToBoolean(result));
        }
コード例 #2
0
        public bool CreateBackboneIdentifier(BackboneIdentifier backboneIdentifier)
        {
            ListDictionary param = new ListDictionary();

            param.Add("@BackboneId", backboneIdentifier.BackboneId);
            param.Add("@Type", backboneIdentifier.Type);
            param.Add("@Identifier", backboneIdentifier.Identifier);
            param.Add("@SerialNo", backboneIdentifier.SerialNo);
            param.Add("@Value", backboneIdentifier.Value);
            param.Add("@CreatedBy", backboneIdentifier.CreatedBy);
            param.Add("@CreateTs", backboneIdentifier.CreatedTs);
            param.Add("@Comment", backboneIdentifier.Comment);
            var result = DataAccess.ExecuteSPNonQuery(DataAccess.ConnectionStrings.Ansira, "CreateBackboneIdentifiers", param);

            return(Convert.ToBoolean(result));
        }
コード例 #3
0
        public HttpResponseMessage DeleteBackboneIdentifier(BackboneIdentifier backboneIdentifier)
        {
            var result = _repository.DeleteBackboneIdentifier(backboneIdentifier);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }