public void EditBacklogItem(BacklogItem BacklogItemEdited) { _modelBacklogItem.BacklogItems.First(p => p.BacklogItemId == BacklogItemEdited.BacklogItemId).Nome = BacklogItemEdited.Nome; _modelBacklogItem.BacklogItems.First(p => p.BacklogItemId == BacklogItemEdited.BacklogItemId).Estimativa = BacklogItemEdited.Estimativa; _modelBacklogItem.BacklogItems.First(p => p.BacklogItemId == BacklogItemEdited.BacklogItemId).Nota = BacklogItemEdited.Nota; _modelBacklogItem.SubmitChanges(); }
public ActionResult Create(BacklogItem novoBackLogItem) { try { // TODO: Add insert logic here ViewData["ProdutoId"] = novoBackLogItem.ProdutoId; repBackLogItem.AddBacklogItem(novoBackLogItem); return PartialView("List", repBackLogItem.GetAllBacklogItens(novoBackLogItem.ProdutoId)); } catch { return PartialView("List", repBackLogItem.GetAllBacklogItens(novoBackLogItem.ProdutoId)); } }
public void AddBacklogItem(BacklogItem NewBacklogItem) { _modelBacklogItem.BacklogItems.InsertOnSubmit(NewBacklogItem); _modelBacklogItem.SubmitChanges(); }
private void detach_BacklogItems(BacklogItem entity) { this.SendPropertyChanging(); entity.Produto = null; }
partial void DeleteBacklogItem(BacklogItem instance);
partial void UpdateBacklogItem(BacklogItem instance);
partial void InsertBacklogItem(BacklogItem instance);