public Task <ActionResult> Update([FromBody] RequestProduct newObj)
    {
        String serviceName = newObj.GetType().Name;

        // TODO : validar se entity.getState() é um State com antecessor e precedente validos.
        return(RequestFilter.GetObject <RequestProduct>(this.User.Identity, this.Request, this.entityManager, serviceName).ContinueWith <ActionResult>(taskOldObj => {
            return RequestFilter.ProcessUpdate(this.User.Identity, this.Request, this.entityManager, serviceName, newObj).ContinueWith <ActionResult>(taskResponse => {
                ActionResult response = taskResponse.Result;


                return response;
            }).Result;
        }));
    }
    public Task <ActionResult> Create([FromBody] RequestProduct obj)
    {
        String serviceName = CaseConvert.UnderscoreToCamel(obj.GetType().Name, false);

        return(RequestFilter.ProcessCreate <RequestProduct>(this.User.Identity, this.entityManager, serviceName, obj));
    }