public HttpResponseMessage UpdateSourceNode(SourceNode sourceNode)
        {
            try
            {
                _entityLogic.Update(sourceNode);
                return(Request.CreateResponse(HttpStatusCode.OK, StatusCodes.UPDATED));
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }

            return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, StatusCodes.ERROR_DOESNT_EXIST));
        }
Example #2
0
        public HttpResponseMessage UpdateFee(Fee fee)

        {
            try
            {
                _entityLogic.Update(fee);
                return(Request.CreateResponse(HttpStatusCode.OK, StatusCodes.UPDATED));
            }
            catch (Exception e)
            {
                Debug.WriteLine(e);
            }

            return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, StatusCodes.ERROR_DOESNT_EXIST));
        }
Example #3
0
        public HttpResponseMessage UpdateScheme(Scheme scheme)

        {
            try
            {
                _entityLogic.Update(scheme);
                return(Request.CreateResponse(HttpStatusCode.OK, StatusCodes.UPDATED));
            }
            catch (Exception e)
            {
                Debug.WriteLine(e);
            }

            return(Request.CreateResponse(HttpStatusCode.OK, StatusCodes.UPDATED));
        }