public JsonResult Action(AccomodationType model, bool isDeleted = false)
        {
            JsonResult json   = new JsonResult();
            var        result = false;

            if (model.Id > 0 && isDeleted == false)
            {
                //edit here
                result = accomodationTypesService.UpdateAccomodationTypes(model);
            }
            else if (model.Id > 0 && isDeleted == true)
            {
                //delete here
                result = accomodationTypesService.DeleteAccomodationTypes(model.Id);
            }

            else
            {
                //first create object then add
                AccomodationType accomodationType = new AccomodationType();
                accomodationType.Name        = model.Name;
                accomodationType.Description = model.Description;

                result = accomodationTypesService.SaveAccomodationTypes(accomodationType);
            }

            if (result)
            {
                json.Data = new { success = true };
            }
            else
            {
                json.Data = new { success = false, Messag = "Unable to Perform Operation in Accomodation Type." };
            }

            return(json);
        }