Exemplo n.º 1
0
        public ApiResponse Update(long id, ModelParam param)
        {
            ModelProcessor = new ModelProcessor();
            Response       = new ApiResponse();

            try
            {
                ModelProcessor.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);
            }
        }
Exemplo n.º 2
0
        public ApiResponse Update(List <ModelParam> param)
        {
            ModelProcessor = new ModelProcessor();
            Response       = new ApiResponse();

            try
            {
                ModelProcessor.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);
            }
        }