Exemplo n.º 1
0
        public static Hour HourInsert(Hour hour)
        {
            hour = hour.Save();

            FeedService.FeedAdd("Created", hour);

            return(hour);
        }
Exemplo n.º 2
0
        private static Label LabelUpdate(Label label)
        {
            label = label.Save();

            FeedService.FeedAdd("Updated", label);

            return(label);
        }
Exemplo n.º 3
0
        public static Invoice InvoiceUpdate(Invoice invoice)
        {
            invoice = invoice.Save();

            FeedService.FeedAdd("Updated", invoice);

            return(invoice);
        }
Exemplo n.º 4
0
        public static Hour HourUpdate(Hour hour)
        {
            hour = hour.Save();

            FeedService.FeedAdd("Updated", hour);

            return(hour);
        }
Exemplo n.º 5
0
        public static Project ProjectInsert(Project project)
        {
            project = project.Save();

            FeedService.FeedAdd("Created", project);

            return(project);
        }
Exemplo n.º 6
0
        public static Category CategoryUpdate(Category category)
        {
            category = category.Save();

            FeedService.FeedAdd("Updated", category);

            return(category);
        }
Exemplo n.º 7
0
        public static Project ProjectUpdate(Project project)
        {
            project = project.Save();

            FeedService.FeedAdd("Updated", project);

            return(project);
        }
Exemplo n.º 8
0
        public static Sprint SprintInsert(Sprint sprint)
        {
            sprint = sprint.Save();

            FeedService.FeedAdd("Created", sprint);

            return(sprint);
        }
Exemplo n.º 9
0
        public static Status StatusUpdate(Status status)
        {
            status = status.Save();

            FeedService.FeedAdd("Updated", status);

            return(status);
        }
Exemplo n.º 10
0
        private static Label LabelInsert(Label label)
        {
            label = label.Save();

            FeedService.FeedAdd("Created", label);

            return(label);
        }
Exemplo n.º 11
0
        public static Invoice InvoiceInsert(Invoice invoice)
        {
            invoice = invoice.Save();

            FeedService.FeedAdd("Created", invoice);

            return(invoice);
        }
Exemplo n.º 12
0
        public static Attachment AttachmentUpdate(Attachment attachment)
        {
            attachment = attachment.Save();

            FeedService.FeedAdd("Updated", attachment);

            return(attachment);
        }
Exemplo n.º 13
0
        public static Task TaskInsert(Task task)
        {
            task = task.Save();

            FeedService.FeedAdd("Created", task);

            return(task);
        }
Exemplo n.º 14
0
        public static Attachment AttachmentInsert(Attachment attachment)
        {
            attachment = attachment.Save();

            FeedService.FeedAdd("Created", attachment);

            return(attachment);
        }
Exemplo n.º 15
0
        public static Task TaskUpdate(Task task)
        {
            task = task.Save();

            FeedService.FeedAdd("Updated", task);

            return(task);
        }
Exemplo n.º 16
0
        public static Status StatusInsert(Status status)
        {
            status = status.Save();

            FeedService.FeedAdd("Created", status);

            return(status);
        }
Exemplo n.º 17
0
        public static Category CategoryInsert(Category category)
        {
            category = category.Save();

            FeedService.FeedAdd("Created", category);

            return(category);
        }
Exemplo n.º 18
0
        public static Sprint SprintUpdate(Sprint sprint)
        {
            sprint = sprint.Save();

            FeedService.FeedAdd("Updated", sprint);

            return(sprint);
        }
Exemplo n.º 19
0
        public static Note NoteUpdate(Note note)
        {
            note = note.Save();

            FeedService.FeedAdd("Updated", note);

            return(note);
        }
Exemplo n.º 20
0
        public static Note NoteInsert(Note note)
        {
            note = note.Save();

            FeedService.FeedAdd("Created", note);

            return(note);
        }
Exemplo n.º 21
0
        public static bool CategoryDelete(Category category)
        {
            Category.DeleteCategory(
                new CategoryCriteria
            {
                CategoryId = category.CategoryId
            });

            FeedService.FeedAdd("Deleted", category);

            return(true);
        }
Exemplo n.º 22
0
        public static bool AttachmentDelete(Attachment attachment)
        {
            Attachment.DeleteAttachment(
                new AttachmentCriteria
            {
                AttachmentId = attachment.AttachmentId
            });

            FeedService.FeedAdd("Deleted", attachment);

            return(true);
        }
Exemplo n.º 23
0
        public static bool TaskDelete(Task task)
        {
            Task.DeleteTask(
                new TaskCriteria
            {
                TaskId = task.TaskId
            });

            FeedService.FeedAdd("Deleted", task);

            return(true);
        }
Exemplo n.º 24
0
        public static bool NoteDelete(Note note)
        {
            Note.DeleteNote(
                new NoteCriteria
            {
                NoteId = note.NoteId
            });

            FeedService.FeedAdd("Deleted", note);

            return(true);
        }
Exemplo n.º 25
0
        public static bool StatusDelete(Status status)
        {
            Status.DeleteStatus(
                new StatusCriteria
            {
                StatusId = status.StatusId
            });

            FeedService.FeedAdd("Deleted", status);

            return(true);
        }
Exemplo n.º 26
0
        public static bool SprintDelete(Sprint sprint)
        {
            Sprint.DeleteSprint(
                new SprintCriteria
            {
                SprintId = sprint.SprintId
            });

            FeedService.FeedAdd("Deleted", sprint);

            return(true);
        }
Exemplo n.º 27
0
        public static bool HourDelete(Hour hour)
        {
            Hour.DeleteHour(
                new HourCriteria
            {
                HourId = hour.HourId
            });

            FeedService.FeedAdd("Deleted", hour);

            return(true);
        }
Exemplo n.º 28
0
        public static bool ProjectDelete(Project project)
        {
            Project.DeleteProject(
                new ProjectCriteria
            {
                ProjectId = project.ProjectId
            });

            FeedService.FeedAdd("Deleted", project);

            return(true);
        }
Exemplo n.º 29
0
        public static bool InvoiceDelete(Invoice invoice)
        {
            Invoice.DeleteInvoice(
                new InvoiceCriteria
            {
                InvoiceId = invoice.InvoiceId
            });

            FeedService.FeedAdd("Deleted", invoice);

            return(true);
        }
Exemplo n.º 30
0
        public static bool LabelDelete(Label label)
        {
            Label.DeleteLabel(
                new LabelCriteria
            {
                SourceType = label.SourceType,
                SourceId   = label.SourceId,
                Name       = label.Name
            });

            FeedService.FeedAdd("Deleted", label);

            return(true);
        }