Base solution for your next web application

Activities of "hasan"

Hello Hikalan,

Thanks for the answer

Is it possible to give a Morris Chart Example ?

I have tried like below but it is not getting refreshed

Morris.Donut({
            element: 'payment_stats',
            data: [
              { label: "Download Sales", value: 12 },
              { label: "In-Store Sales", value: 30 },
              { label: "Mail-Order Sales", value: 20 }
            ]
        });

        Morris.Donut({
            element: 'transaction_stats',
            data: _ticketService.getTransactionStats()
        });

The first Morris is coming into the Screen but the second one is not coming. My Service is this like below

public MorrisOutputDto GetTransactionStats()
        {
            
            List<MorrisListDto> outputDtos = new List<MorrisListDto>();

            outputDtos.Add(new MorrisListDto()
            {
                Label = "SALES",
                Value = 190
            });
            outputDtos.Add(new MorrisListDto()
            {
                Label = "PURCHASE",
                Value = 190
            });
            outputDtos.Add(new MorrisListDto()
            {
                Label = "NETS",
                Value = 190
            });
            MorrisOutputDto outputDto = new MorrisOutputDto(outputDtos);

            return outputDto;
        }

Please correct me where i am wrong

Thanks mate

Question

Hello Sir

Instead of jQuery UI Theme, I would like to do a Bootstrap for jTable.

Please help me to show a link or an example.

Thanks

Hello Team

There are three questions here..

  1. In the commercial project, do we have a sample of Morris Chart data comes from controller ?. If you do not have, is it possible to put up some example ?

  2. I am unable see the Tenent Settings for the default admin user ?. How to get it enabled ? What is difference between Tenent, Host and Common folder and why we need to put Views in the Tenent Folder ?

  3. How to enable the auto migration for Entity Framework ?. If not, whenever I deploy to my customer server (Azure Website or Cloud) how can I run the migration automatically ?

Thanks

Thank you so much for the reply

Do we have any sample code in any of the Repository ?

It would be really helpful

Hello Team

It could be very basic question but i have stuck with this

I have an Entity Structure like this one below

public class OrderTagGroup : Entity
    {
        public virtual string Name { get; set; }
        public virtual List<OrderTag> OrderTags { get; set; }
    }

     public class OrderTag : Entity
    {
        public virtual string Name { get; set; }
        public virtual int? OrderTagGroupId { get; set; }
    }

and Its respective DTO is

public class OrderTagGroupDto : EntityDto
{
    [Required]
    public string Name { get; set; }


    public List<OrderTagDto> OrderTags { get; set; }
}

public class OrderTagDto : EntityDto
{
    [Required]
    public string Name { get; set; }


    public int? OrderTagGroupId { get; set; }
}

I have added the Auto mapping as well like this

Mapper.CreateMap<OrderTagGroup, OrderTagGroupDto>();
            Mapper.CreateMap<OrderTagGroupDto, OrderTagGroup>();

            Mapper.CreateMap<OrderTag, OrderTagDto>();
            Mapper.CreateMap<OrderTagDto, OrderTag>();

Here is my Repository update

public void UpdateOrderTagGroup(OrderTagGroupDto OrderTagGroup)
        {
            var group = _OrderTagGroupRepo.Get(OrderTagGroup.Id);
            if (group != null && group.Id > 0)
            {
                Mapper.Map<OrderTagGroupDto, OrderTagGroup>(OrderTagGroup,group);
              
            }
        }

My Question is, whenever my OrderTagGroupDTO goes for the update, it creates a new row in the DB and previous entry is not deleted.

Could you please help me where i am wrong ?

Dear Hikalkan

Thanks for your reply.

For my case, I will have to create a API Controller by myself and use the APIauthorize attribute

Please clarify

Dear Team I am just starting this wonderful module for one of my project

How to give authorization generated to API Controllers ?

For example,

before the user calls, he has to login and get the session id before he proceeds to call other methods

Would like to achieve something like this ?

<a class="postlink" href="http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api">http://www.asp.net/web-api/overview/sec ... in-web-api</a>

Showing 91 to 97 of 97 entries