public async Task <IActionResult> Update([FromBody] SchedulerVM model) { try { Scheduler Scheduler = new Scheduler() { _id = ObjectId.Parse(model._id), Subject = model.Subject, Id = model.Id, //StartTime = model.StartTime, //EndTime = model.EndTime, StartTimezone = model.StartTimezone, EndTimezone = model.EndTimezone, Location = model.Location, Description = model.Description, IsAllDay = model.IsAllDay, RecurrenceID = model.RecurrenceID, RecurrenceRule = model.RecurrenceRule, Frequency = model.Frequency, Interval = model.Interval, Count = model.Count, IsReadonly = model.IsReadonly, IsBlock = model.IsBlock, Untill = model.Untill, ByDay = model.ByDay, BYMonthDay = model.BYMonthDay, BYMonth = model.BYMonth, BYSetPOS = model.BYSetPOS, }; await _schedulerRepository.UpdateScheduler(Scheduler); return(new OkObjectResult(Scheduler)); } catch (Exception ex) { } return(Ok()); }