public List <AreaList> GetAreaList([FromBody] Area area) { List <AreaList> areaLists = new List <AreaList>(); try { if (area != null) { AreaDAO areaDAO = new AreaDAO(); areaLists = areaDAO.GetAreaList(area.areaOf); return(areaLists); } else { System.Diagnostics.Debug.WriteLine("areaOf is null"); return(null); } } catch (Exception e) { System.Diagnostics.Debug.WriteLine("Unsuccessful Query Excution -> " + e); throw e; } }