public IEnumerable <Contact> GetAllContacts() { return(_repo.GetAllContacts() .Select(c => new Contact { Id = c.Id, FirstName = c.FirstName, LastName = c.Lastname, Email = c.Email, Address = c.Address, PhoneNumber = c.Phonenumber, UserId = c.UserId })); }