예제 #1
0
        public IHttpActionResult GetSpecializationList()
        {
            StringBuilder traceLog = null;
            ServiceResponse <List <Specialization> > objResponse = null;

            try
            {
                traceLog = new StringBuilder();
                traceLog.AppendLine("Start: GetSpecializationList()");
                objResponse              = new ServiceResponse <List <Specialization> >();
                objResponse.jsonData     = TeamBL.GetSpecializationList();
                objResponse.IsResultTrue = true;
                return(Ok(objResponse));
            }
            catch (Exception ex)
            {
                LogManager.LogManagerInstance.WriteErrorLog(ex);
                return(BadRequest(ex.Message));
            }
            finally
            {
                traceLog.AppendLine("End:GetSpecializationList() Response Result Status-" + objResponse.IsResultTrue + ",Fetched DatTime-" + DateTime.Now.ToLongDateString());
                LogManager.LogManagerInstance.WriteTraceLog(traceLog);
                traceLog = null;
            }
        }