Actually I missed to verify the update there are two methods create and update in my vendor(caller) service both are calling the core accounting service SaveAllAsync method having [HttpPost] attribute. While creating there is no errors am able to call the core accounting service SaveAllAsync method from Vendor, but while updating again getting the Forbidden error.
Below screens showing calling same service SaveAllAsync in coreaccounting from vendor service create and update methods. From Create method it is success but from update is getting Forbidden
Eurekaa.. Success I am able to call the service from another service after giving the permissions to client. Thank you for your support
Hi LiangShiwei,
In which project I need to install this package Vendor or CoreAccounting? I am calling method from vendor to core accounting. Also we have module and service projects separate, should I need to install in service or module?
Provide us with the following info:
🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration
button.
Hi Liangshiwei, I have tried with above code but the entire record is deleted instead softdelete(IsDelete=0).
private readonly IVendorRepository _VendorRepository;
public async Task DeleteAsync(Guid id)
{
await _VendorRepository.DeleteAsync(x=>x.VendorId == id);
}
public interface IVendorRepository : IRepository<Vendor, Guid>, ITransientDependency
{
}
I will try by applying the above changes but what about DeletorId to update in DB for delete.
public enum TypeOfVendors
{
Standard,
CreditCard,
Pcard,
Pc,
TaxAgency,
PayrollCompany,
ShippingPartner,
Pdecm,
Director,
SalesRep,
Messenger,
CarService,
Phones,
Bidder,
ExecutiveProducer,
DirectorOfPhotography,
Producer
}