Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline issue on my method Attributes in web Api controller #245

Open
avinash1422 opened this issue Aug 10, 2018 · 0 comments
Open

Pipeline issue on my method Attributes in web Api controller #245

avinash1422 opened this issue Aug 10, 2018 · 0 comments

Comments

@avinash1422
Copy link

if input CacheOutput attribute in first place it is working fine in my method.
but i put the CustomeFilter (RolePermissionFilter) in first place after i put the CacheOutput it is not working, can you give me any suggestion on this.

    [HttpGet]
    [**RolePermissionFilter**(ScreenName = Constrant.Templates, PermissionName = 
    Constrant.ViewandAddandEdit, ModuleName = Constrant.ClientCursor)]
    [**CacheOutput**(ClientTimeSpan = 0, ServerTimeSpan = 6000)]
    [Route("getdata")]
    public IHttpActionResult GetData(long companyId, long subCompanyId)
    {
        try
        {
            data model = _dataservice.GetData(companyId, subCompanyId);
            return Ok(model);
        }
        catch (Exception ex)
        {
            return BadRequest(ex.Message);
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant