public LoginDetailsVM GetLoginDetails(LoginRequestVM loginCredetials)
        {
            var loginDetails = _loginRepo.GetLoginDetails(loginCredetials.EmailId).Result;

            if (loginDetails == null)
            {
                throw new Exception("User not found");
            }

            if (loginDetails.Password == loginCredetials.Password)
            {
                UpdateLoginUserStatus(loginDetails.UserId, true);
                return(_mapper.Map <LoginDetailsVM>(loginDetails));
            }
            else
            {
                throw new Exception("Wrong Password");
            }
        }