Example #1
0
        // GET: Contacts/Details/5
        public async Task <ActionResult> Details(Guid id)
        {
            Contact contact = await contactManager.Get(id);

            if (contact == null)
            {
                return(HttpNotFound());
            }

            return(View(contact));
        }
Example #2
0
        public async Task <IActionResult> GetByStatusWebSite(string langCode = "vie")
        {
            try
            {
                var data = await _contact.Get(langCode);

                return(Ok(data));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 public async Task <ApiResponse> Get()
 => await _contactManager.Get();
 public Contact Get(long id)
 {
     contactManager = new ContactManager(ModelFactory <ContactModel> .GetContext());
     return(contactManager.Get(id));
 }
 public List <Contact> Get()
 {
     contactManager = new ContactManager(ModelFactory <ContactModel> .GetContext());
     return(contactManager.Get());
 }