public async Task <Template> AddTemplate(Template template) { var addedCompany = _templatesRepository.Add(template); if (await _templatesRepository.SaveChangesAsync()) { return(addedCompany); } else { return(null); } }
public Task Add(TemplateCreateModel model) { return(templatesRepository.Add(model)); }