Beispiel #1
0
 public IActionResult UpdateTerm(int termId, [FromBody] TermContract data)
 {
     try
     {
         m_termManager.UpdateTerm(termId, data);
         return(Ok());
     }
     catch (HttpErrorCodeException exception)
     {
         return(StatusCode((int)exception.StatusCode, exception.Message));
     }
 }
Beispiel #2
0
 public void UpdateTerm(int termId, TermContract data)
 {
     new CreateOrUpdateTermWork(m_catalogValueRepository, termId, data).Execute();
 }
Beispiel #3
0
 public int CreateTerm(TermContract data)
 {
     return(new CreateOrUpdateTermWork(m_catalogValueRepository, null, data).Execute());
 }
 public CreateOrUpdateTermWork(CatalogValueRepository catalogValueRepository, int?termId, TermContract data) : base(catalogValueRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_termId = termId;
     m_data   = data;
 }
Beispiel #5
0
 public int CreateTerm([FromBody] TermContract term)
 {
     return(m_termManager.CreateTerm(term));
 }