Home I get a 404 not found when using postman to test api
Reply: 0

I get a 404 not found when using postman to test api

amal mansour
amal mansour Published in 2018-02-13 21:40:52Z

i want to test api that make order i send all parameters in body and i'm waiting receipt but postman respond with 404 not found

    [AccessPolicy("sales", "sales", AccessTypeEnum.Create)]
    public async Task<ActionResult> PostAsync(ViewModels.Sales model)
        if (!this.ModelState.IsValid)
            return this.InvalidModelState(this.ModelState);

        var meta = await AppUsers.GetCurrentAsync().ConfigureAwait(true);

        model.UserId = meta.UserId;
        model.OfficeId = meta.OfficeId;
        model.LoginId = meta.LoginId;

            long tranId = await SalesEntries.PostAsync(this.Tenant, model).ConfigureAwait(true);
            return this.Ok(tranId);
        catch (Exception ex)
            return this.Failed(ex.Message, HttpStatusCode.InternalServerError);
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.387798 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO