示例#1
0
        public ActionResult Edit(WorkItemModel model)
        {
            if (TryValidateModel(model))
            {
                _tasksRepository.Modify(model);

                Json(new { success = true, message = "OK" });
            }

            return Json(new { success = false, message = "Error" });
        }
示例#2
0
 public void Create(WorkItemModel model)
 {
     ExecuteProcedure("create_work_item", new
         {
             model.TypeId,
             model.SprintId,
             model.StateId,
             model.Reason,
             model.Effort,
             model.Description,
             model.BacklogPriority,
             model.DateEnded,
             model.DateStarted,
             model.AssignedTo
         });
 }
示例#3
0
 public void Modify(WorkItemModel model)
 {
     ExecuteProcedure("update_work_item", model);
 }