public Task Delete(TemplateDeleteModel model)
 {
     return(templatesRepository.Delete(model));
 }
 public async Task <bool> DeleteTemplate(Guid id)
 {
     _templatesRepository.Delete(id);
     return(await _templatesRepository.SaveChangesAsync());
 }