Example #1
0
        public ApiResponse Update(long id, VehicleParam param)
        {
            VehicleProcessor = new VehicleProcessor();
            Response         = new ApiResponse();

            try
            {
                VehicleProcessor.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 <VehicleParam> param)
        {
            VehicleProcessor = new VehicleProcessor();
            Response         = new ApiResponse();

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