Ejemplo n.º 1
0
        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;
        }