public string getFlatByID(int flatid) { FlatModel fl = fservice.GetFlatByID(flatid); return(Newtonsoft.Json.JsonConvert.SerializeObject(fl)); }