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

            return isSaved;
        }