Esempio n. 1
0
 public IActionResult UpdateTermCategory(int termCategoryId, [FromBody] TermCategoryContract data)
 {
     try
     {
         m_catalogValueManager.UpdateTermCategory(termCategoryId, data);
         return(Ok());
     }
     catch (HttpErrorCodeException exception)
     {
         return(StatusCode((int)exception.StatusCode, exception.Message));
     }
 }
Esempio n. 2
0
 public int CreateTermCategory(TermCategoryContract data)
 {
     return(new CreateOrUpdateTermCategoryWork(m_catalogValueRepository, null, data).Execute());
 }
Esempio n. 3
0
 public void UpdateTermCategory(int termCategoryId, TermCategoryContract data)
 {
     new CreateOrUpdateTermCategoryWork(m_catalogValueRepository, termCategoryId, data).Execute();
 }
Esempio n. 4
0
 public int CreateTermCategory([FromBody] TermCategoryContract termCategory)
 {
     return(m_catalogValueManager.CreateTermCategory(termCategory));
 }
 public CreateOrUpdateTermCategoryWork(CatalogValueRepository catalogValueRepository, int?termCategoryId, TermCategoryContract data) : base(catalogValueRepository)
 {
     m_catalogValueRepository = catalogValueRepository;
     m_termCategoryId         = termCategoryId;
     m_data = data;
 }