using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Bit.App.Abstractions; using Bit.App.Models.Data; namespace Bit.App.Repositories { public class AttachmentRepository : Repository, IAttachmentRepository { public AttachmentRepository(ISqlService sqlService) : base(sqlService) { } public Task> GetAllByLoginIdAsync(string loginId) { var attachments = Connection.Table().Where(a => a.LoginId == loginId).Cast(); return Task.FromResult(attachments); } } }