Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

Post data and Entity inherit #10

@dalton5

Description

@dalton5

Hi,
I have created a model that inherits from Entity. And one that does not inherit from Entity.

The model that inherits from Entity instantiate the object but does not fill the property in the post request. See screenshots.

My model is like this:

public class EmailTransac : Entity
    {   [Required()]
        public string Name { get; set; }
        [Required()]
        public string From { get; set; }
        [Required()]
        public string Template { get; set; }
        [Required()]
        public string Subject { get; set; }
    }

    public class EmailTransacModel
    {
        [Required()]
        public string Name { get; set; }
        [Required()]
        public string From { get; set; }
        [Required()]
        public string Template { get; set; }
        [Required()]
        public string Subject { get; set; }
    }

With inherit of Entity

2015-08-22 17_45_58-gleamr debugging - microsoft visual studio administrator

Without inherit of Entity

2015-08-22 17_47_03-gleamr debugging - microsoft visual studio administrator

My Postman config

2015-08-22 17_47_29-postman

Any ideas how can I fix this?

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions