public ApiResponse Update(long id, CheckUpParam param) { CheckUpProcessor = new CheckUpProcessor(); Response = new ApiResponse(); try { CheckUpProcessor.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 <CheckUpParam> param) { CheckUpProcessor = new CheckUpProcessor(); Response = new ApiResponse(); try { CheckUpProcessor.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); } }