public async Task <ActionResult> EditAsync(WebsiteProperties item) { if (ModelState.IsValid) { await DocumentDBRepository <WebsiteProperties> .UpdateItemAsync(item.Id, item); return(RedirectToAction("Index")); } return(View(item)); }
public async Task <ActionResult> DeleteAsync(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } WebsiteProperties item = await DocumentDBRepository <WebsiteProperties> .GetItemAsync(id); if (item == null) { return(HttpNotFound()); } return(View(item)); }
public async Task <ActionResult> DetailsAsync(string id) { WebsiteProperties item = await DocumentDBRepository <WebsiteProperties> .GetItemAsync(id); return(View(item)); }