Beispiel #1
0
        public IHttpActionResult Post([FromBody] GetTermModel model)
        {
            var term = termManager.GetById(model.termId);
            ClientTermViewModel result = null;

            if (term != null)
            {
                result = TermViewModelHelper.ToModel(term, model.withPositions, model.withMaterials);
            }

            return(Ok(result));
        }
Beispiel #2
0
        public IHttpActionResult Post([FromBody] GetTermModel model)
        {
            var term   = termManager.GetById(model.termId);
            var result = new List <ClientTermPositionViewModel>();

            if (term != null)
            {
                result = TermViewModelHelper.PositionModels(term);
            }

            return(Ok(result));
        }