Exemplo n.º 1
0
        public HttpResponseMessage GetAllParty()
        {
            var party     = partyRepository.GetAllParty();
            var formatter = RequestFormat.JsonFormaterString();

            return(Request.CreateResponse(HttpStatusCode.OK, party, formatter));
        }
Exemplo n.º 2
0
 /// <summary>
 /// This is the method for get All party.
 /// </summary>
 /// <returns></returns>
 public IList <PartyresponseModel> GetAllParty()
 {
     try
     {
         return(partyRL.GetAllParty());
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 3
0
 /// <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));
        }