public ActionResult EditChannel(int id, ChannelEntity Channel)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    ChannelFactory       EditChannel = new ChannelFactory();
                    DataLayer.tblChannel NewChannel  = new DataLayer.tblChannel();

                    ValidationFactory VF      = new ValidationFactory();
                    string            Message = VF.ChannelValidity(Channel.ChannelName, id);
                    if (Message != "Success")
                    {
                        ModelState.AddModelError("ChannelName", Message);
                        return(View(Channel));
                    }
                    else
                    {
                        NewChannel.ChannelId   = id;
                        NewChannel.ChannelName = Channel.ChannelName;
                        NewChannel.CreatedDate = Channel.CreatedDate;
                        NewChannel.CreatedBy   = null;
                        NewChannel.UpdatedDate = DateTime.Now;
                        NewChannel.UpdatedBy   = null;
                        NewChannel.IsActive    = Channel.IsActive;
                        EditChannel.SaveChannel(NewChannel);
                        return(RedirectToAction("Channel"));
                    }
                }
                else
                {
                    return(View(Channel));
                }
            }
            catch
            {
                return(View());
            }
        }