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)); } }
public int CreateTermCategory(TermCategoryContract data) { return(new CreateOrUpdateTermCategoryWork(m_catalogValueRepository, null, data).Execute()); }
public void UpdateTermCategory(int termCategoryId, TermCategoryContract data) { new CreateOrUpdateTermCategoryWork(m_catalogValueRepository, termCategoryId, data).Execute(); }
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; }