public IActionResult UpdateHMO(mp_profile_hmo hmo)
        {
            var user_id = _userManager.GetUserId(HttpContext.User);
            var profile = _profileService.GetProfileByUserId(user_id);

            hmo.updated_by = user_id.ToString();
            hmo.created_by = user_id.ToString();
            hmo.profile_id = profile.id;
            _profileHMOService.AddOrUpdate(hmo);

            return(Redirect(Request.Headers["Referer"].ToString()));
        }
 public IActionResult PostHMO(mp_profile_hmo hmo)
 {
     _profileHMOService.AddOrUpdate(hmo);
     return(Ok(200));
 }