Esempio n. 1
0
 public ViewComponentResult TaskAddLabel(int p_TaskID, string p_LabelColour)
 {
     m_Label = new Labels(p_TaskID, p_LabelColour);
     m_context.Labels.Add(m_Label);
     m_context.SaveChanges();
     return ViewComponent("Label", m_Label);
 }
Esempio n. 2
0
 public IViewComponentResult Invoke(Labels model)
 {
     return View("Label", model);
 }
Esempio n. 3
0
 public void Add(Labels p_Model)
 {
     m_Label = p_Model;
     m_context.Labels.Add(m_Label);
     m_context.SaveChanges();
 }
Esempio n. 4
0
 public LabelController(ScrumToolDB p_context)
 {
     m_context = p_context;
     m_Label = null;
 }