public List <PurchasesDetails> GetAllforajax()
 {
     return(_purchaseRepository.GetAllforajax());
 }