public async Task <IActionResult> AddTemplate([FromBody] TemplateViewModel templateViewModel)
        {
            var companyId = this.User.Claims.SingleOrDefault(c => c.Type == "companyId").Value;
            var template  = mapper.Map <Template>(templateViewModel);

            template.CompanyId = companyId;
            template           = await inventoryProvider.AddTemplate(template);

            mapper.Map(template, templateViewModel);
            return(Ok(templateViewModel));
        }