/// <summary> /// Method for getting one sms with specific id. /// </summary> /// <param name="id">Id of sms</param> /// <returns>SMS Model</returns> public async Task <SMS> GetAsync(Guid id) => await SMSs.AsQueryable().FirstOrDefaultAsync(x => x.Id == id);
/// <summary> /// Method for getting all sms's from database. /// </summary> /// <returns>Collection of sms's</returns> public async Task <IEnumerable <SMS> > GetAllAsync() => await SMSs.AsQueryable().ToListAsync();