public async Task <BaseResponse> SaveMember(MemberRequest memberRequest)
        {
            try
            {
                Member member = new Member();
                if (memberRequest != null)
                {
                    var minresult = await _dBContext.Physican.AsNoTracking().MinAsync(x => x.PhysicianId);

                    var maxresult = await _dBContext.Physican.AsNoTracking().MaxAsync(x => x.PhysicianId);

                    Random random            = new Random();
                    int    randomPhysicianId = random.Next(minresult, maxresult);
                    //member.PhysicianId = randomPhysicianId;

                    member = new Member()
                    {
                        MemberID     = 0,
                        FirstName    = memberRequest.FirstName,
                        LastName     = memberRequest.LastName,
                        EmailAddress = memberRequest.EmailAddress,
                        Address      = memberRequest.Address,
                        SSN          = memberRequest.SSN,
                        State        = memberRequest.State,
                        PhysicianId  = randomPhysicianId
                    };

                    _dBContext.Member.Add(member);
                    await _dBContext.SaveChangesAsync();
                }
                return(new BaseResponse()
                {
                    StatusCode = StatusCodes.Status201Created,
                    StatusDescription = " Member Details Added Successfully! ",
                    ID = member.MemberID
                });
            }
            catch (Exception ex)
            {
                Log.Error("Exception occurred on Save Member", ex);
                return(new BaseResponse {
                    StatusCode = StatusCodes.Status500InternalServerError, StatusDescription = "Internal Server Error"
                });
            }
        }
 public async Task <BaseResponse> SaveMember(MemberRequest memberRequest)
 {
     return(await _memberRepository.SaveMember(memberRequest));
 }