public HttpResponseMessage GetAllParty() { var party = partyRepository.GetAllParty(); var formatter = RequestFormat.JsonFormaterString(); return(Request.CreateResponse(HttpStatusCode.OK, party, formatter)); }
/// <summary> /// This is the method for get All party. /// </summary> /// <returns></returns> public IList <PartyresponseModel> GetAllParty() { try { return(partyRL.GetAllParty()); } catch (Exception) { throw; } }
/// <summary> /// It Return All the Party /// </summary> /// <returns>It Return All the Party</returns> public List <PartyCreatedResponseModel> GetAllParty() { try { return(_partyRepository.GetAllParty()); } catch (Exception e) { throw new Exception(e.Message); } }
public async Task <IActionResult> Index() { var partys = _partyRepository.GetAllParty(); return(View(await partys)); }