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?
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.