Exemple #1
0
        public async Task <Content> AddContent(ContentArg contentArg, string userId, string userLoginId)
        {
            var content = SetContentProperty(contentArg, userId, userLoginId);

            content.ContentId   = Utility.GetId();
            content.ContentName = await Utility.UploadImageToFirebase(content.ContentId, contentArg.Data);

            return(content);
        }
Exemple #2
0
 public Content SetContentProperty(ContentArg contentArg, string userId, string userLoginId)
 {
     return(new Content
     {
         ContentDescription = contentArg.ContentDescription,
         ContentTypeId = contentArg.ContentTypeId,
         ContentUserId = userId,
         MimeTypeId = contentArg.MimeTypeId,
         FromDate = DateTime.Now,
         UserLoginId = userLoginId
     });
 }
 public CreateAgentCommand()
 {
     PersonalInformationArg = new PersonalInformationArg();
     LogoImage = new ContentArg();
 }