Пример #1
0
        public int[] AddMedia([FromBody] MediaOption mediaOption)
        {
            Media media  = mediaMngr.CreateMedia(mediaOption);
            int   userId = projectMngr.FindProjectCreatorByProjectId(media.Project.Id);

            int[] redirect = { media.Project.Id, userId };
            return(redirect);
        }
Пример #2
0
 public Media PostMedia([FromBody] MediaOption medOpt)
 {
     return(medMangr.CreateMedia(medOpt));
 }