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

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

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