/// <returns>A task that represents the asynchronous operation</returns>
        public virtual async Task <IActionResult> ManufacturerTemplateAdd(ManufacturerTemplateModel model)
        {
            if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageMaintenance))
            {
                return(AccessDeniedView());
            }

            if (!ModelState.IsValid)
            {
                return(ErrorJson(ModelState.SerializeErrors()));
            }

            var template = new ManufacturerTemplate();

            template = model.ToEntity(template);
            await _manufacturerTemplateService.InsertManufacturerTemplateAsync(template);

            return(Json(new { Result = true }));
        }