public static ItemViewModel ModelToViewModel(ItemModel model) { var viewModel = new ItemViewModel { boardId = -1, category = model.CategoryId }; return viewModel; }
// POST api/EmployeeAPI public bool Post(ItemViewModel value) { bool isSaved = true; return isSaved; }