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