Exemplo n.º 1
0
 public static void DeleteTaskComment(string taskCommnetId, ILogger _logger, Helper.Cache _redisCache, Helper.AppSettings _appSettings)
 {
     try
     {
         MongoRepository taskcommentmongorepo = new MongoRepository("TaskComments", _appSettings);
         taskcommentmongorepo.DeleteMany <TaskComments>(t => t.strId == taskCommnetId);
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 2
0
        public static string updateDb(long userId, Helper.AppSettings settings)
        {
            MongoRepository mongorepo = new MongoRepository("ContentFeedsShareathon", settings);

            try
            {
                mongorepo.DeleteMany <Domain.Socioboard.Models.Mongo.ContentFeedsShareathon>(t => t.UserId == userId && t.Status == true);
                return("success");
                //return lsitdatashare.ToList();
            }
            catch (Exception ex)
            {
                return("Error");
            }
        }