示例#1
0
 public ActionResult <KeywordDTO> UpdateKeyword([FromBody] Keyword keyword)
 {
     return(Ok(KeywordDTO.Of(_keywordService.UpdateKeyword(keyword))));
 }
示例#2
0
 public ActionResult <KeywordDTO> DeleteKeyword(int id)
 {
     return(Ok(KeywordDTO.Of(_keywordService.DeleteKeyword(id))));
 }
示例#3
0
 public ActionResult <List <KeywordDTO> > GetKeywordsForCompany(int companyId)
 {
     return(Ok(_companyService.GetKeywordsForCompany(companyId).Select(x => KeywordDTO.Of(x)).ToList()));
 }
示例#4
0
 public ActionResult <List <KeywordDTO> > GetAllKeywords()
 {
     return(Ok(_keywordService.GetAllKeywords().Select(keyword => KeywordDTO.Of(keyword)).ToList()));
 }
示例#5
0
 public ActionResult <List <KeywordDTO> > GetKeywordsForContact(int contactId)
 {
     return(Ok(_contactService.GetKeywordsForContact(contactId).Select(x => KeywordDTO.Of(x))));
 }