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)); }
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)); }
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)); }