예제 #1
0
        public async Task <IActionResult> GetMemberByUsername(string username)
        {
            try
            {
                var MemberByMembername = await _authServices.GetMemberByUsername(username);

                if (MemberByMembername != null)
                {
                    return(Ok(MemberByMembername));
                }
                return(NotFound($"Member with Membername: {username} not found"));
            }
            catch (Exception)
            {
                return(BadRequest("Error!  Request cannot be completed, Please contact administrator"));
            }
        }