// GET: entity_note/Create
        public ActionResult Create(string etn_entity_key, EntityTypes entity_type)
        {
            ViewBag.IsSignOutNotes = entity_type == EntityTypes.SignOutNotes;
            ViewBag.etn_ntt_key    = _entityNoteService.GetAll()
                                     .Select(m => new SelectListItem
            {
                Text  = m.ucd_title,
                Value = m.ucd_key.ToString()
            });

            var noteTypeKey = 0;
            var nt          = _uCLService.GetDefault(UclTypes.NoteType);

            if (nt != null)
            {
                noteTypeKey = nt.ucd_key;
            }
            if (Request.IsAjaxRequest())
            {
                return(PartialView(new entity_note {
                    etn_is_active = true, etn_entity_key = etn_entity_key, etn_ent_key = entity_type.ToInt(), etn_ntt_key = noteTypeKey
                }));
            }
            else
            {
                return(View(new entity_note {
                    etn_is_active = true, etn_entity_key = etn_entity_key, etn_ent_key = entity_type.ToInt()
                }));
            }
        }
 public ActionResult Index(string etn_entity_key, EntityTypes entity_type)
 {
     ViewBag.etn_entity_key = etn_entity_key;
     ViewBag.ent_key        = entity_type.ToInt();
     return(PartialView());
 }