public HttpResponseMessage AddInstitution(HttpRequestMessage request, InstitutionViewModel institutionVm) { HttpResponseMessage response = null; if (institutionVm.Type.ToUpper().Equals("HIGHSCHOOL")) { adminApi.AddHighSchool(institutionVm.Name, institutionVm.Website); } else if (institutionVm.Type.ToUpper().Equals("UNIVERSITY")) { adminApi.AddUniversity(institutionVm.Name, institutionVm.Website); } else if (institutionVm.Type.ToUpper().Equals("COLLEGE")) { adminApi.AddCollege(institutionVm.Name, institutionVm.Website); } else { response = request.CreateResponse(HttpStatusCode.OK, new { success = false }); } response = request.CreateResponse(HttpStatusCode.OK, new { success = true }); return(response); }