Exemplo n.º 1
0
        public Response CreateIdea(string name, Idea idea, string email, string author)
        {
            InviteeList inviteeList = _iIdeaRepository.CreateIdea(idea, email, author);

            if (inviteeList.IsSuccess)
            {
                _email = email; _author = author;
                SendNotifications(inviteeList, NotificationType.CreateIdea, name, "", idea.Title);
            }
            return(new Response(inviteeList.IsSuccess, inviteeList.Message));
        }
Exemplo n.º 2
0
        Idea IIdeasService.CreateIdea(Idea idea)
        {
            var newIdea = _ideasRepository.CreateIdea(idea);

            return(newIdea);
        }