using (var ms = new MemoryStream()) { command.File.CopyTo(ms); var fileBytes = ms.ToArray(); var certificate = new X509Certificate2(fileBytes, command.Password, X509KeyStorageFlags.MachineKeySet); }
namespace Epilefinho.Domain.Repositories{ public interface ISaleRepository { Task<SalesResume> GetAllSalesReportAsync(int idCompany, int? NumberPage, int? Limitpage, DateTime? StartDate, DateTime? EndDate); }}
public async Task<(List<SalesReportEntity>allSales, int totalSales)> GetAllSalesReportAsync(){return (allSales: sales, totalSales: sales.Count());}