public ApiResponse Update(long id, IssueParam param) { IssueProcessor = new IssueProcessor(); Response = new ApiResponse(); try { IssueProcessor.Update(id, param); Response.text = "Entity was successfully updated"; Response.result = true; return(Response); } catch { Response.text = "Unfortunately something went wrong :("; Response.result = false; return(Response); } }
public ApiResponse Update(List <IssueParam> param) { IssueProcessor = new IssueProcessor(); Response = new ApiResponse(); try { IssueProcessor.Update(param); Response.text = "Entities were successfully updated."; Response.result = true; return(Response); } catch { Response.text = "Unfortunately something went wrong :("; Response.result = false; return(Response); } }