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)); }
Idea IIdeasService.CreateIdea(Idea idea) { var newIdea = _ideasRepository.CreateIdea(idea); return(newIdea); }