示例#1
0
        public HttpResponseMessage GetAllParty()
        {
            var party     = partyRepository.GetAllParty();
            var formatter = RequestFormat.JsonFormaterString();

            return(Request.CreateResponse(HttpStatusCode.OK, party, formatter));
        }
示例#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;
     }
 }
示例#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));
        }