public Task Create(Task newTask) { int id = _repo.Create(newTask); newTask.Id = id; return(newTask); }
public Repositories(string connection) { #region Data context creating // ReSharper disable UseObjectOrCollectionInitializer _Context = new TimezDataContext(connection); // ReSharper restore UseObjectOrCollectionInitializer #if DEBUG _Context.CommandTimeout = 60 * 5; _Context.Log = new DebuggerWriter(); #endif #endregion Boards = BoardsRepository.Create(_Context); BoardsColors = BoardsColorsRepository.Create(_Context); BoardsUsers = BoardsUsersRepository.Create(_Context); Tasks = TasksRepository.Create(_Context); TasksStatuses = TasksStatusesRepository.Create(_Context); Users = UsersRepository.Create(_Context); Organizations = OrganizationsRepository.Create(_Context); Projects = ProjectsRepository.Create(_Context); Comments = CommentsRepository.Create(_Context); EventHistory = EventHistoryRepository.Create(_Context); Invites = InvitesRepository.Create(_Context); Texts = TextsRepository.Create(_Context); }
internal Task Create(Task newTask) { int id = _repo.Create(newTask); newTask.id = id; return(newTask); }
internal void Create(Task ts, string id) { List list = _ls.GetById(ts.ListId); if (list == null) { throw new Exception("Invalid Id"); } if (list.CreatorId != id) { throw new NotAuthorized("Not The Owner of this Party"); } _repo.Create(ts); }
public void Post(Tasks t) { repo.Create(t); }
public MyTask Create(MyTask newTask) { newTask.Id = _repo.Create(newTask); return(newTask); }
internal Tasky Create(Tasky newTask) { return(_repo.Create(newTask)); }