title: web calling function using mvvm pattern in swift
body: <p>I’m trying to implement MVVM design pattern using swift but few things are not clear to me which are mentioned below.</p>
  
  <p>I need to get list of flowers and display it tableview.
  I will call web api which will give details of different types of Flower. 
  So I created Class Flower (as Model) and FlowerViewModel class as (ViewModel) and ViewController had the tableview in it.</p>
  
  <p>But not sure, in which class should I place the calling of web api and parsing JSON response ?
  As of now I have both these placed in the FlowerViewModel class</p>
  
  <p>Please suggest if need to do correction for placing of these two functions or my assumption is correct.</p>
  
  <p>Thanks</p>