public int AddUserAddressDetails(UserAddress request) { IUserDetails _repository = new UserDetails(); int response = 0; response = _repository.AddUserAddress(request); return(response); }
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); }