public IActionResult Save([FromBody] SaveTemplateVM vm)
        {
            if (!service.IsTemplateNameValid(vm))
            {
                return(Json(new { success = false, message = "Nazwa szablonu musi byæ unikalna." }));
            }
            bool isSaveSuccess = service.Save(vm);

            if (isSaveSuccess)
            {
                return(Json(new { success = true, message = "Zapisano pomyœlnie!", id = vm.TemplateId }));
            }
            else
            {
                return(Json(new { success = false, message = "Wyst¹pi³ b³¹d w zapisie!" }));
            }
        }