Ejemplo n.º 1
0
        public int AddUserAddressDetails(UserAddress request)
        {
            IUserDetails _repository = new UserDetails();
            int          response    = 0;

            response = _repository.AddUserAddress(request);
            return(response);
        }
Ejemplo n.º 2
0
        public ResponseModel AddUserAddress(UserAddress request)
        {
            IUserDetails _repository = new UserDetails();
            int          response    = 0;

            response = _repository.AddUserAddress(request);
            string        Status = "0";
            ResponseModel model  = new ResponseModel();

            if (response > 0)
            {
                model.Status  = response.ToString();
                model.Message = "New Address Added Succesfully";
            }
            else
            {
                model.Status = "0";
            }
            return(model);
        }