Base solution for your next web application

Activities of "[email protected]"

input class public class CreateOrEditAvailabilityDto : EntityDto<int?> {

    public DateTime Day { get; set; }

    public DateTime Time { get; set; }

    public DateTime Datetime { get; set; }

    public bool Generated { get; set; }

    public string Timezone { get; set; }

    public AvailabilityStatusEnum Status { get; set; }

    public int SpecialistId { get; set; }

    public int ProductTypeId { get; set; }

}

**save function**
 public JsonResult SaveCalendar([FromBody] List&lt;CalendarItem&gt; list)
    {
        var OrgList = list.FindAll(x => x.type != "none" && x.type != "" && x.Id == 0);
        foreach (var item in OrgList)
        {
            CreateOrEditAvailabilityDto calendarItem = new CreateOrEditAvailabilityDto();

            calendarItem.Day = DateTime.Parse(item.day);
            calendarItem.Time = DateTime.Parse(item.time);
            calendarItem.Datetime =calendarItem.Datetime;
            calendarItem.SpecialistId = 0;
            calendarItem.Status = AvailabilityStatusEnum.Available;
            _availabilitiesAppService.CreateOrEdit(calendarItem);
        }
        return Json(list);
    }
    
   ** AppService method**
    
     protected virtual async Task Create(CreateOrEditAvailabilityDto input)
    {
        var availability = ObjectMapper.Map&lt;Availability&gt;(input);

        if (AbpSession.TenantId != null)
        {
            availability.TenantId = (int?)AbpSession.TenantId;
        }

        if (input.SpecialistId == 0)
        {
            availability.SpecialistId = _lookup_specialistRepository.FirstOrDefault(x => x.UserId == AbpSession.UserId).Id;
        }

        await _availabilityRepository.InsertAsync(availability);

    }

Hi,

in cshtml

Ive noticed that creationtime,lastmodificationdatetime are being converted to UTC, but any other custom dates no, and kindly note that am working with the Public project and ive implemeted the clock provider in both the MVC and Public projects.

and librarysettings is not being render and if i call it from the layout abp.clock.provider.supportsMultipleTimezone is coming undefined

Am working with Asp.net core & jquery project I have added the Clock.Provider = ClockProviders.Utc; under MVC startup ConfigureServices method, and now am having difficulties to present any date with the user selected timezone. Any help would be appreciated

  • What is your product version? 11.2.1
  • What is your product type (Angular or MVC)? ASP.NET Core MVC
  • What is product framework type (.net framework or .net core)? .net core

Hello,

am trying to detect the tenant through the sub domain, multi tenancy is enabled, and i have set the following

  • Web.Mvc Project
    • appsettings: "WebSiteRootAddress": "http://{TENANCY_NAME}.localhost:44302/",
    • WebMvcModule: Configuration.Modules.AbpWebCommon().MultiTenancy.DomainFormat = "{0}.localhost:44302";
  • We.Public Project
    • appsettings: "WebSiteRootAddress": "http://{TENANCY_NAME}.localhost:44303/",
    • WebMvcModule: Configuration.Modules.AbpWebCommon().MultiTenancy.DomainFormat = "{0}.localhost:44303";

I have a tenant called "clinic" and when i try to access "clinic.localhost:44302" or "clinic.localhost:44303" am getting a 400 error

any idea what could be wrong here? or how i can resolve this?

Showing 1 to 5 of 5 entries