상속: BaseEntity
예제 #1
0
파일: TaskManager.cs 프로젝트: BEXIS2/Core
        public Task UpdateTask(Task task)
        {
            using (IUnitOfWork uow = this.GetUnitOfWork())
            {
                IRepository<Task> tasksRepo = uow.GetRepository<Task>();
                tasksRepo.Put(task);
                uow.Commit();
            }

            return (task);
        }
예제 #2
0
파일: TaskManager.cs 프로젝트: BEXIS2/Core
        public Task CreateTask(string areaName, string controllerName, string actionName)
        {
            Task task = new Task()
            {
                AreaName = areaName,
                ControllerName = controllerName,
                ActionName = actionName,
            };

            using (IUnitOfWork uow = this.GetUnitOfWork())
            {
                IRepository<Task> tasksRepo = uow.GetRepository<Task>();
                tasksRepo.Put(task);

                uow.Commit();
            }

            return (task);
        }