Esempio n. 1
0
        private void ToSelectList(CategoryViewModel cat, List<SelectListItem> list, Proposal proposal)
        {
            if (cat.Children != null)
            {
                foreach (var item in cat.Children)
                {
                    list.Add(new SelectListItem()
                    {
                        Value = item.Id.ToString(),
                        Text = Prefix(2 * item.Depth) + item.Name,
                        Selected = proposal == null ? false : item.Id == proposal.Field.Id
                    });
                    ToSelectList(item, list, proposal);

                }
            }
        }
Esempio n. 2
0
 public static Proposal Clone(Proposal proposal)
 {
     return null;
 }
Esempio n. 3
0
 public void UpdateProposal(Proposal toUpdate, ProposalBindingModel form)
 {
     toUpdate.Title = form.Title;
     toUpdate.Abstract = form.Abstract;
     toUpdate.Content = form.Content;
 }