Ignore:
Timestamp:
07/31/20 10:15:02 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
d8fafb8
Parents:
4e72684
Message:

Update & add service

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoData/FarmatikoRepo/PandemicRepository.cs

    r4e72684 ra55ef91  
    11using FarmatikoData.FarmatikoRepoInterfaces;
    22using FarmatikoData.Models;
    3 using Microsoft.EntityFrameworkCore;
    4 using System;
    5 using System.Collections.Generic;
    63using System.Linq;
    7 using System.Text;
    84
    95namespace FarmatikoData.FarmatikoRepo
     
    2420        }
    2521
    26         public IEnumerable<Pandemic> GetAll()
     22        public IQueryable<Pandemic> GetAll()
    2723        {
    28             return _context.Pandemics;
     24            return _context.Pandemics.OrderBy(x => x.Name);
    2925        }
    3026
Note: See TracChangeset for help on using the changeset viewer.