public HttpResponseMessage UpdateCompetitors(CompetitorsUpdateDTO objCompetitors)
        {
            HttpResponseMessage message;

            try
            {
                CompetitorsDataAccessLayer dal = new CompetitorsDataAccessLayer();
                var dynObj = new { result = dal.UpdateCompetitors(objCompetitors) };
                message = Request.CreateResponse(HttpStatusCode.OK, dynObj);
            }
            catch (Exception ex)
            {
                message = Request.CreateResponse(HttpStatusCode.BadRequest, new { msgText = " Somthing wrong,try Again!" });
                ErrorLog.CreateErrorMessage(ex, "Competitors", "UpdateCompetitors");
            }
            return(message);
        }
        //---Update Data--
        public bool UpdateCompetitors(CompetitorsUpdateDTO objCompetitors)
        {
            bool       res    = false;
            SqlCommand SqlCmd = new SqlCommand("spUpdateCompetitors");

            SqlCmd.CommandType = CommandType.StoredProcedure;
            SqlCmd.Parameters.AddWithValue("@@ClientId", objCompetitors.ClientId);
            SqlCmd.Parameters.AddWithValue("@Designation", objCompetitors.Designation);
            SqlCmd.Parameters.AddWithValue("@Service", objCompetitors.Service);
            SqlCmd.Parameters.AddWithValue("@RatePerEmployee", objCompetitors.RatePerEmployee);
            SqlCmd.Parameters.AddWithValue("@EmployeeCount", objCompetitors.EmployeeCount);
            SqlCmd.Parameters.AddWithValue("@ModifiedBy", objCompetitors.ModifiedBy);
            int result = new DbLayer().ExecuteNonQuery(SqlCmd);

            if (result != Int32.MaxValue)
            {
                res = true;
            }
            return(res);
        }