public ActionResult DeleteConfirmed(int id)
        {
            string resultTrans = "success";

            try
            {
                var DiagnosisList = diseaseRepository.GetDiagnosisByDiseaseId(id);
                if (DiagnosisList.Count() == 0)
                {
                    var     objSession = Session["user"] as MyClinic.Infrastructure.SessUser;
                    Disease Disease    = diseaseRepository.GetDiseaseById(id);
                    var     newDisease = ObjectCopier.Copy <Disease>(Disease);
                    newDisease.Status = 0;
                    diseaseRepository.UpdateFieldChangedOnly(Disease, newDisease);
                    /*For Add New Record to LogTable*/
                    logTran.UserId      = objSession.UserId;
                    logTran.ProcessType = "Delect Disease";
                    logTran.Description = "Delect Disease Name: " + Disease.Name;
                    logTran.LogDate     = DateTime.Now;
                    logRepository.Add(logTran);
                }
                else
                {
                    resultTrans = "failure";
                    return(Json(new { result = resultTrans, proccessType = "Delete", Id = id, strName = Translator.ThisDisease, strUsed = Translator.MsgDiagnosis }));
                }
            }
            catch (Exception ex)
            {
                log.Error(ex);
                resultTrans = "failure";
            }
            return(Json(new { result = resultTrans, proccessType = "Delete", Id = id }));
        }