예제 #1
0
        public ActionResult UpdateFrequencyType(OapFrequencyType model)
        {
            // TODO: Add update logic here
            var response = OapFrequencyTypeClient.UpdateFrequencyTypeAsync(model).Result;

            return(RedirectToAction("Index"));
        }
예제 #2
0
        public async Task <ActionResult> CreateFrequencyType(OapFrequencyType model)
        {
            // TODO: Add insert logic here
            var response = await OapFrequencyTypeClient.AddFrequencyTypeAsync(model);

            return(RedirectToAction("Index"));
        }
예제 #3
0
 public async Task <ActionResult> DeleteFrequencyType(OapFrequencyType model)
 {
     if (model.Id > 0)
     {
         var response = await OapFrequencyTypeClient.DeleteFrequencyTypeAsync(model.Id);
     }
     return(RedirectToAction("Index"));
 }
예제 #4
0
        public WebApiResult <bool> UpdateFrequencyType([FromBody] OapFrequencyType list)
        {
            if (list == null)
            {
                throw new System.Exception("Argument is null");
            }

            return(TryCatch <UpdateFrequencyTypeRequest, bool>(new UpdateFrequencyTypeRequest(list)));
        }
예제 #5
0
 public UpdateFrequencyTypeRequest(OapFrequencyType frequencyType)
 {
     FrequencyType = frequencyType;
 }
예제 #6
0
 public WebApiResult <OapFrequencyType> AddFrequencyType([FromBody] OapFrequencyType list)
 {
     return(TryCatch <AddFrequencyTypeRequest, OapFrequencyType>(new AddFrequencyTypeRequest(list)));
 }