public async Task <MessageReport> Update(OS_Player model) { var query = new StringBuilder(); query.AppendLine("{"); query.AppendLine("'_id': { '$eq': '" + model.Id + "' }"); query.AppendLine("}"); return(await _OS_PlayerRepository.Update(MongoHelper.ConvertQueryStringToDocument(query.ToString()), model)); }
public async Task <MessageReport> Create(OS_Player model) { return(await _OS_PlayerRepository.Add(model)); }