public BugLog SaveBugLog(BugLog bugLog) { using (var repositoriesContainer = new LmPlatformRepositoriesContainer()) { repositoriesContainer.BugLogsRepository.Save(bugLog); repositoriesContainer.ApplyChanges(); } return bugLog; }
public ActionResult SaveBug(AddOrEditBugViewModel model) { model.Save(WebSecurity.CurrentUserId, _currentProjectId); var bugLog = new BugLog { BugId = model.BugId, UserId = WebSecurity.CurrentUserId, UserName = ProjectManagementService.GetCreatorName(WebSecurity.CurrentUserId), PrevStatusId = _prevBugStatus, CurrStatusId = model.StatusId, LogDate = DateTime.Now }; if (model.BugId != 0) { model.SaveBugLog(bugLog); } return null; }
public void SaveBugLog(BugLog bugLog) { new BugManagementService().SaveBugLog(bugLog); }