/// <summary> /// Get Contact Details /// </summary> /// <returns>Returns true if success, else false</returns> public bool GetContactDetails(out Contact contactObj) { var succeed = false; contactObj = null; using (this._context = new dbContext()) { contactObj = this._context.Contact.FirstOrDefault(); succeed = true; } return succeed; }
public UserRepository(dbContext context) { _context = context; }