public JsonResult JsonCreateSwot(Swot swot) { return(JsonResponse(() => { swot.EnsureAuditFields(CurrentUser.UserID); _businessPlanService.CreateSwot(ref swot); return swot; })); }
public JsonResult JsonUpdateSwot(Swot swot) { return(JsonResponse(() => { swot.ModifyUserID = CurrentUser.UserID; swot.ModifyDate = DateTime.Now; swot.ModifyDateUtc = DateTime.UtcNow; _businessPlanService.UpdateSwot(ref swot); })); }
public void DeleteSwot(Swot swot) { var swotToDelete = FindBy <Swot>(s => s.SwotID == swot.SwotID).FirstOrDefault(); if (swotToDelete == null) { return; } Delete(swotToDelete); Save(); }
private void CopySwots(BusinessPlan plan, BusinessPlan existingPlan) { foreach (var existingSwot in existingPlan.Swots) { var swot = new Swot() { BusinessPlanID = plan.BusinessPlanID, Type = existingSwot.Type, Description = existingSwot.Description, CreateDate = DateTime.Now, CreateDateUtc = DateTime.UtcNow, CreateUserID = plan.CreateUserID, ModifyDate = DateTime.Now, ModifyDateUtc = DateTime.UtcNow, ModifyUserID = plan.ModifyUserID }; _businessPlanRepository.AddSwot(swot); } }
public JsonResult JsonDeleteSwot(Swot swot) { return(JsonResponse(() => _businessPlanService.DeleteSwot(swot))); }
public void DeleteSwot(Swot swot) { _businessPlanRepository.DeleteSwot(swot); }
public void UpdateSwot(ref Swot swot) { _businessPlanRepository.UpdateSwot(swot); }
public void CreateSwot(ref Swot swot) { _businessPlanRepository.AddSwot(swot); }
public void DeleteSwot(Swot swot) { var proxy = _businessPlanService.CreateProxy(); proxy.DeleteSwot(swot); }
public void UpdateSwot(ref Swot swot) { var proxy = _businessPlanService.CreateProxy(); proxy.UpdateSwot(ref swot); }
public void UpdateSwot(Swot swot) { Context.UpdateGraph(swot); Save(); }
public void AddSwot(Swot swot) { Add(swot); Save(); }