public ActionResult UpdateFrequencyType(OapFrequencyType model) { // TODO: Add update logic here var response = OapFrequencyTypeClient.UpdateFrequencyTypeAsync(model).Result; return(RedirectToAction("Index")); }
public async Task <ActionResult> CreateFrequencyType(OapFrequencyType model) { // TODO: Add insert logic here var response = await OapFrequencyTypeClient.AddFrequencyTypeAsync(model); return(RedirectToAction("Index")); }
public async Task <ActionResult> DeleteFrequencyType(OapFrequencyType model) { if (model.Id > 0) { var response = await OapFrequencyTypeClient.DeleteFrequencyTypeAsync(model.Id); } return(RedirectToAction("Index")); }
public WebApiResult <bool> UpdateFrequencyType([FromBody] OapFrequencyType list) { if (list == null) { throw new System.Exception("Argument is null"); } return(TryCatch <UpdateFrequencyTypeRequest, bool>(new UpdateFrequencyTypeRequest(list))); }
public UpdateFrequencyTypeRequest(OapFrequencyType frequencyType) { FrequencyType = frequencyType; }
public WebApiResult <OapFrequencyType> AddFrequencyType([FromBody] OapFrequencyType list) { return(TryCatch <AddFrequencyTypeRequest, OapFrequencyType>(new AddFrequencyTypeRequest(list))); }