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); }
public Media PostMedia([FromBody] MediaOption medOpt) { return(medMangr.CreateMedia(medOpt)); }