public async Task <IHttpActionResult> GetAllType() { var result = await accountbusiness.GetAllType(); if (result != null) { return(Ok(result)); } return(Content(HttpStatusCode.InternalServerError, "Error")); }