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<CalendarItem> 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<Availability>(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
Hello,
am trying to detect the tenant through the sub domain, multi tenancy is enabled, and i have set the following
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?