public IHttpActionResult ActivateResident(string referenceId) { var user = HttpContext.Current.User as SecurityPrincipal; logger.Info($"Exit date updated by {user.ForeName}"); var success = _residentService.ActivateResident(new Guid(referenceId)); if (!success) { return(Ok(true)); } logger.Warn($"Cannot activate resident"); return(Ok(false)); }