AddError method to JsonController