Example #1
0
        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);
            }
        }
Example #2
0
        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);
            }
        }